#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. | |
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. | |
Singleton (void) | |
Static Public Member Functions | |
static FontManager & | getSingleton (void) |
Return singleton FontManager object. | |
static FontManager * | getSingletonPtr (void) |
Return pointer to singleton FontManager object. | |
Static Protected Attributes | |
static FontManager * | ms_Singleton = NULL |
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.
Definition at line 54 of file CEGUIFontManager.h.
|
Definition at line 252 of file CEGUIFontManager.h. |
|
Constructor for FontManager objects.
Definition at line 52 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). |
|
Destructor for FontManager objects.
Definition at line 68 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, destroyAllFonts(), CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). |
|
Creates a new Font based on a true-type font, and returns a pointer to the new Font object.
Definition at line 113 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, CEGUI::System::getSingleton(), CEGUI::Logger::getSingleton(), isFontPresent(), CEGUI::Logger::logEvent(), and CEGUI::System::setDefaultFont(). |
|
Creates a new font from a font definition file, and returns a pointer to the new Font object.
Definition at line 83 of file CEGUIFontManager.cpp. References CEGUI::FontManager::FontManagerImplData::d_ftlib, CEGUI::Font::getName(), CEGUI::System::getSingleton(), CEGUI::Logger::getSingleton(), isFontPresent(), CEGUI::Logger::logEvent(), and CEGUI::System::setDefaultFont(). Referenced by CEGUI::Scheme::loadResources(). |
|
Destroys all Font objects registered in the system.
Definition at line 174 of file CEGUIFontManager.cpp. References destroyFont(). Referenced by ~FontManager(). |
|
Destroys the given Font object.
Definition at line 161 of file CEGUIFontManager.cpp. References destroyFont(), and CEGUI::Font::getName(). |
|
Destroy's the font with the given name.
Definition at line 141 of file CEGUIFontManager.cpp. References CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). 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 196 of file CEGUIFontManager.cpp. Referenced by CEGUI::FontDim::getValue_impl(), CEGUI::TextComponent::render_impl(), and writeFontToStream(). |
|
Return a FontManager::FontIterator object to iterate over the available Font objects.
Definition at line 242 of file CEGUIFontManager.cpp. |
|
Return singleton FontManager object.
Reimplemented from CEGUI::Singleton< FontManager >. Definition at line 226 of file CEGUIFontManager.cpp. Referenced by CEGUI::FontDim::getValue_impl(), CEGUI::Scheme::loadResources(), CEGUI::TextComponent::render_impl(), CEGUI::Scheme::resourcesLoaded(), CEGUI::System::setDefaultFont(), CEGUI::Window::setFont(), CEGUI::ListboxTextItem::setFont(), and CEGUI::Scheme::unloadResources(). |
|
Return pointer to singleton FontManager object.
Reimplemented from CEGUI::Singleton< FontManager >. Definition at line 232 of file CEGUIFontManager.cpp. Referenced by CEGUI::System::~System(). |
|
Checks the existence of a given font.
Definition at line 187 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 213 of file CEGUIFontManager.cpp. |
|
Definition at line 58 of file CEGUISingleton.h. |
|
Writes a full XML font file for the specified Font to the given OutStream.
Definition at line 248 of file CEGUIFontManager.cpp. References getFont(), and CEGUI::Font::writeXMLToStream(). |
|
Definition at line 45 of file CEGUIFontManager.cpp. |