#include <glv_font.h>
Public Member Functions | |
| virtual float | advance (const char c) const |
| Get advance amount (width) of character. | |
| virtual float | advance (const char *text) const |
| Returns total advance width of text string. | |
| virtual void | getBounds (float &w, float &h, const char *text) const |
| Get bounding box of text string. | |
| virtual void | render (const char *text, float x=0, float=0, float z=0) |
| Render text string. | |
| Font & | letterSpacing (float v) |
| Set spacing, in ems, between the left and right edges of successive letters. | |
| Font & | lineSpacing (float v) |
| Set spacing, in ems, between lines. | |
| Font & | size (unsigned size) |
| Set the font size in pixels. | |
| Font & | tabSpaces (unsigned spaces) |
| Set number of spaces per tab. | |
| float | baseline () const |
| Get absolute position on which glyphs rest. | |
| float | cap () const |
| Get distance from baseline to top of uppercase glyphs. | |
| float | xheight () const |
| Get distance from baseline to top of lowercase glyphs. | |
| float | descent () const |
| Get distance from baseline to lowest position of glyphs. | |
| float | letterSpacing () const |
| Get letter spacing, in ems. | |
| float | lineSpacing () const |
| Get line spacing, in ems. | |
| float | scaleX () const |
| Get scaling factor in x direction. | |
| unsigned | size () const |
| Get font size, in pixels. | |
| unsigned | tabSpaces () const |
| Get number of spaces per tab. | |
Font.
1.7.1