#include <fontserv.h>
Inheritance diagram for iFontServer:

Public Methods | |
| virtual iFont* | LoadFont (const char *filename)=0 |
| Load a font by name. More... | |
| virtual int | GetFontCount ()=0 |
| Get number of loaded fonts. | |
| virtual iFont* | GetFont (int iIndex)=0 |
| Get Nth loaded font or NULL. More... | |
Font server can load fonts and create iFont objects. In fact user does not care whenever fonts are built-in the font server or are on disk; thus some font servers may contain the fonts hardcoded; in this case the font path is really a identifier.
|
|
Get Nth loaded font or NULL. You can query all loaded fonts with this method, by looping through all indices starting from 0 until you get NULL. Note that the returned font is NOT IncRef'd: do it yourself if you store the pointer for long-term use. |
|
|
Load a font by name. Returns a new iFont object or NULL on failure. |