GetFace

Advanced function

GLYPH_FACE *GetFace() const;

Returs the Glyph Keeper face of the font.

Usually you don't need the Glyph Keeper face of the font anywhere, but you may still find some use for it.

Notice that the returned face isn't a copy even if it's not const. The reason is that Glyph Keeper doesn't support const GLYPH_FACE's.

Examples

TextRenderer renderer( ... );

// Get the Glyph Keeper face of the font //
GLYPH_FACE *face = renderer.GetFace();


Other functions of the class TextRenderer
Load
Load the font
Print
Prints the given text to the screen
SetColor
Sets the color of the font
GetColor
Returns the text color of the font
SetItalics
Sets the italics angle of the text
GetItalics
Returns the italics angle of the text
Width
Returns the width of the given text
Height
Returns the height of the given text
FirstLineWidth
Returns the width of the first text line of the given text
FirstLineHeight
Returns the height of the first text line of the given text
IsValid
Checks if the TextRenderer was loaded correctly

Advanced functions

GetFace
SendToGPU
UnloadFromGPU
UseAutoDelete


Questions about GetFace? Click here.