Public Types | |
|
typedef ConstBaseIterator< FontRegistry > | FontIterator |
Public Member Functions | |
| FontManager (void) | |
| Constructor for FontManager objects. | |
| ~FontManager (void) | |
| Destructor for FontManager objects. | |
| Font * | createFont (const String &filename, const String &resourceGroup="") |
| Creates a new font from a font definition file, and returns a pointer to the new Font object. | |
| Font * | createFont (const String &name, const String &fontname, uint size, uint flags, const String &resourceGroup="") |
| Creates a new Font based on a true-type font, and returns a pointer to the new Font object. | |
| void | destroyFont (const String &name) |
| Destroy's the font with the given name. | |
| void | destroyFont (Font *font) |
| Destroys the given Font object. | |
| void | destroyAllFonts (void) |
| Destroys all Font objects registered in the system. | |
| bool | isFontPresent (const String &name) const |
| Checks the existence of a given font. | |
| Font * | getFont (const String &name) const |
| Returns a pointer to the font object with the specified name. | |
| void | notifyScreenResolution (const Size &size) |
| Notify the FontManager of the current (usually new) display resolution. | |
| void | writeFontToStream (const String &name, OutStream &out_stream) const |
| Writes a full XML font file for the specified Font to the given OutStream. | |
| FontIterator | getIterator (void) const |
| Return a FontManager::FontIterator object to iterate over the available Font objects. | |
Static Public Member Functions | |
| static FontManager & | getSingleton (void) |
| Return singleton FontManager object. | |
| static FontManager * | getSingletonPtr (void) |
| Return pointer to singleton FontManager object. | |
Classes | |
| struct | FontManagerImplData |
The FontManager is used to create, access, and destroy Font objects. The idea is that the FontManager will function as a central repository for Font objects used within the GUI system, and that those Font objects can be accessed, via a unique name, by any interested party within the system.
|
||||||||||||||||||||||||
|
Creates a new Font based on a true-type font, and returns a pointer to the new Font object.
|
|
||||||||||||
|
Creates a new font from a font definition file, and returns a pointer to the new Font object.
|
|
|
Destroys all Font objects registered in the system.
|
|
|
Destroys the given Font object.
|
|
|
Destroy's the font with the given name.
|
|
|
Returns a pointer to the font object with the specified name.
|
|
|
Return singleton FontManager object.
|
|
|
Return pointer to singleton FontManager object.
|
|
|
Checks the existence of a given font.
|
|
|
Notify the FontManager of the current (usually new) display resolution.
|
|
||||||||||||
|
Writes a full XML font file for the specified Font to the given OutStream.
|
1.4.5