Font Class Reference
[Graphics]
Inheritance diagram for Font:

Classes | |
| struct | Bounds |
| struct | Character |
| struct | Kerning |
Public Member Functions | |
| Font () | |
| Font (const Asset &asset) | |
| Font (const Filename &filename) | |
| ~Font () | |
| void | Blit (Bitmap &bitmap, int x, int y, const char *text, int spacing=0, unsigned short modulate=0xffff, unsigned char alpha=255) const |
| void | BlitWrap (Bitmap &bitmap, int x, int y, const char *text, int width, int hspacing=0, int vspacing=0, unsigned short modulate=0xffff, unsigned char alpha=255) const |
| Bounds | GetBounds (const char *text, int spacing=0) const |
| Bounds | GetBoundsWrap (const char *text, int width, int hspacing=0, int vspacing=0) const |
| int | GetBaseline () const |
| int | GetSize () const |
| int | GetGlyphHeight () const |
| void | WriteToAsset (Asset *asset) |
| void | ReadFromAsset (const Asset *asset) |
| void | ReadFromAssetNew (const Asset *asset) |
Detailed Description
- Todo:
- Cleanup and prioritize new format
Definition at line 23 of file Font.h.
Constructor & Destructor Documentation
Member Function Documentation
| void Font::Blit | ( | Bitmap & | bitmap, | |
| int | x, | |||
| int | y, | |||
| const char * | text, | |||
| int | spacing = 0, |
|||
| unsigned short | modulate = 0xffff, |
|||
| unsigned char | alpha = 255 | |||
| ) | const |
| void Font::BlitWrap | ( | Bitmap & | bitmap, | |
| int | x, | |||
| int | y, | |||
| const char * | text, | |||
| int | width, | |||
| int | hspacing = 0, |
|||
| int | vspacing = 0, |
|||
| unsigned short | modulate = 0xffff, |
|||
| unsigned char | alpha = 255 | |||
| ) | const |
| Font::Bounds Font::GetBounds | ( | const char * | text, | |
| int | spacing = 0 | |||
| ) | const |
| Font::Bounds Font::GetBoundsWrap | ( | const char * | text, | |
| int | width, | |||
| int | hspacing = 0, |
|||
| int | vspacing = 0 | |||
| ) | const |
Reproduction/republishing of any material on this site without permission is strictly prohibited.
