iFontServer Struct Reference
[2D]
A font server interface.
More...
#include <fontserv.h>
Inheritance diagram for iFontServer:

Public Methods | |
virtual csPtr< iFont > | LoadFont (const char *filename)=0 |
Load a font by name. | |
virtual int | GetFontCount ()=0 |
Get number of loaded fonts. | |
virtual iFont * | GetFont (int iIndex)=0 |
Get Nth loaded font or 0. |
Detailed Description
A font server interface.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.
Definition at line 216 of file fontserv.h.
Member Function Documentation
|
Get Nth loaded font or 0. You can query all loaded fonts with this method, by looping through all indices starting from 0 until you get 0. Note that the returned font is NOT IncRef'd: do it yourself if you store the pointer for long-term use. |
|
Get number of loaded fonts.
|
|
Load a font by name. Returns a new iFont object or 0 on failure. |
The documentation for this struct was generated from the following file:
- ivideo/fontserv.h
Generated for Crystal Space by doxygen 1.2.18