Base class: Asset
This class provides an interface for loading and rasterizing fonts for text drawing. Once a font is loaded, a Sprite can be created to display text on the screen.
Property | Type | Description |
---|---|---|
GetTextWidth | Method | returns the width in pixels of the specified text when rendered with this font. |
GetHeight | Method | returns the height in pixels of a line of text with this font |
LoadFont | Function | loads a font from a True-type font (TTF) file. |