#include <CEGUIFontManager.h>
Inheritance diagram for CEGUI::FontManager:
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. | |
FontIterator | getIterator (void) const |
Return a FontManager::FontIterator object to iterate over the available Font objects. | |
Static Public Member Functions | |
FontManager & | getSingleton (void) |
Return singleton FontManager object. | |
FontManager * | getSingletonPtr (void) |
Return pointer to singleton FontManager object. | |
Static Protected Attributes | |
FontManager * | ms_Singleton = NULL |
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.
Definition at line 54 of file CEGUIFontManager.h.
|
Definition at line 236 of file CEGUIFontManager.h. Referenced by getIterator(). |
|
Constructor for FontManager objects.
Definition at line 51 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, and CEGUI::utf8. |
|
Destructor for FontManager objects.
Definition at line 67 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, destroyAllFonts(), and CEGUI::utf8. |
|
Creates a new Font based on a true-type font, and returns a pointer to the new Font object.
Definition at line 106 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, isFontPresent(), and CEGUI::utf8. |
|
Creates a new font from a font definition file, and returns a pointer to the new Font object.
Definition at line 82 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, CEGUI::Font::getName(), isFontPresent(), and CEGUI::utf8. Referenced by CEGUI::Scheme::loadResources(). |
|
Destroys all Font objects registered in the system.
Definition at line 161 of file CEGUIFontManager.cpp. References destroyFont(). Referenced by ~FontManager(). |
|
Destroys the given Font object.
Definition at line 148 of file CEGUIFontManager.cpp. References destroyFont(), and CEGUI::Font::getName(). |
|
Destroy's the font with the given name.
Definition at line 128 of file CEGUIFontManager.cpp. References CEGUI::utf8. Referenced by destroyAllFonts(), destroyFont(), CEGUI::Scheme::loadResources(), and CEGUI::Scheme::unloadResources(). |
|
Returns a pointer to the font object with the specified name.
Definition at line 183 of file CEGUIFontManager.cpp. |
|
Return a FontManager::FontIterator object to iterate over the available Font objects.
Definition at line 229 of file CEGUIFontManager.cpp. References FontIterator. |
|
Return singleton FontManager object.
Reimplemented from CEGUI::Singleton< FontManager >. Definition at line 213 of file CEGUIFontManager.cpp. |
|
Return pointer to singleton FontManager object.
Reimplemented from CEGUI::Singleton< FontManager >. Definition at line 219 of file CEGUIFontManager.cpp. |
|
Checks the existence of a given font.
Definition at line 174 of file CEGUIFontManager.cpp. Referenced by createFont(), CEGUI::Scheme::loadResources(), and CEGUI::Scheme::resourcesLoaded(). |
|
Notify the FontManager of the current (usually new) display resolution.
Definition at line 200 of file CEGUIFontManager.cpp. References CEGUI::Font::notifyScreenResolution(). |
|
Definition at line 44 of file CEGUIFontManager.cpp. |