#include <OpenGUI_FontSet.h>
Inheritance diagram for OpenGUI::FontSet:

Public Member Functions | |
| const String & | getFilename () |
| Returns the filename used to load the font. | |
| const String & | getName () |
| Returns the name of this font. | |
| bool | getGlyph (const Char glyph_charCode, const IVector2 &pixelSize, FontGlyph &outFontGlyph) |
| Retrieves the FontGlyph struct for a glyph glyph_charCode at the given pixelSize. | |
| unsigned int | getLineSpacing (unsigned int pointSize) |
| Returns the line height in pixels for a given pixelSizeY. | |
| int | getAscender (unsigned int pointSize) |
Returns the font wide ascender in pixels for a given pointSize. | |
| int | getDescender (unsigned int pointSize) |
Returns the font wide descender in pixels for a given pointSize. | |
| int | getMaxAdvance (unsigned int pointSize) |
Returns the maximum horizontal advance for all characters at the given pointSize. | |
| int | getTextWidth (const IVector2 &pixelSize, const String &text) |
Returns the true width for the given text at the given pointSize. | |
| void | renderGlyph (const Char glyph_charCode, const IVector2 &pixelSize, TextureDataRect *destTDR, FontGlyphMetrics &destGlyphMetrics) |
| Renders the requested glyph to the given TextureDataRect in the size specified. | |
Protected Member Functions | |
| FontSet (const String &sourceFilename, const String &fontName) | |
| Font creation implies loading of the font via FreeType. | |
| ~FontSet () | |
| Destruction also unloads the font from FreeType. | |
| virtual void | finalize () |
| This is called when the last handle to this object is destroyed. | |
|
||||||||||||
|
Font creation implies loading of the font via FreeType.
|
|
|
Destruction also unloads the font from FreeType.
|
|
|
This is called when the last handle to this object is destroyed.
Implements OpenGUI::RefObject. |
|
|
Returns the font wide ascender in pixels for a given
|
|
|
Returns the font wide descender in pixels for a given
|
|
|
Returns the filename used to load the font.
|
|
||||||||||||||||
|
Retrieves the FontGlyph struct for a glyph glyph_charCode at the given pixelSize.
|
|
|
Returns the line height in pixels for a given pixelSizeY.
|
|
|
Returns the maximum horizontal advance for all characters at the given
|
|
|
Returns the name of this font.
|
|
||||||||||||
|
Returns the true width for the given
|
|
||||||||||||||||||||
|
Renders the requested glyph to the given TextureDataRect in the size specified.
|