#include <gltext.h>
Inheritance diagram for gltext::Font:
Public Methods | |
virtual const char *GLTEXT_CALL | getName ()=0 |
Gets the name of this font. | |
virtual Glyph *GLTEXT_CALL | getGlyph (unsigned char c)=0 |
virtual int GLTEXT_CALL | getSize ()=0 |
Gets the point size of this font. | |
virtual int GLTEXT_CALL | getDPI ()=0 |
virtual int GLTEXT_CALL | getAscent ()=0 |
virtual int GLTEXT_CALL | getDescent ()=0 |
virtual int GLTEXT_CALL | getLineGap ()=0 |
virtual int GLTEXT_CALL | getKerning (unsigned char l, unsigned char r)=0 |
|
Gets the ascent of this font. This is the distance from the baseline to the top of the tallest glyph of this font. |
|
Gets the descent of this font. This is the distance from the baseline to the bottom of the glyph that descends the most from the baseline. |
|
Returns the DPI value passed to OpenFont() when this font was created. |
|
Returns the glyph object associated with the character c in the font. |
|
Returns the kerning distance between character c1 and character c2. The kerning distance is added to the previous character's advance distance. |
|
Gets the distance that must be placed between two lines of text. Thus the baseline to baseline distance can be computed as ascent + descent + linegap. |