#include <OpenGUI_FontManager.h>
Public Types | |
| typedef std::list< String > | FontList |
| a list of font names that are currently loaded in the FontManager, retrieved by FontManager::getFontList() | |
Public Member Functions | |
| FontSetPtr | RegisterFontSet (String filename, String fontName) |
| Registers a new font. | |
| void | SetDefaultFont (Font font) |
| Sets the default font. | |
| Font | GetDefaultFont () |
| Retrieves the default font. | |
| void | UnRegisterFontSet (Font font) |
| UnRegisters a loaded font by handle. | |
| void | UnRegisterFontSet (const String &fontName) |
| UnRegisters a loaded font by name. | |
| void | UnRegisterFontSet (FontSetPtr fontSet) |
| UnRegisters a loaded font by FontSetPtr. | |
| FontSetPtr | GetFontSet (const String &fontName) |
| Retrieves a font by name. | |
| FontList | getFontList () |
| Returns a FontList containing the names of all loaded fonts, which can then be fed to GetFontSet() or used with Font. | |
| ImageryPtrList | _getFontAtlases () |
| Returns an ImageryPtrList containing ImageryPtrs for each font atlas. | |
Static Public Member Functions | |
| static FontManager & | getSingleton (void) |
| Retrieve the current singleton, if one exists. If none exists, this will cause an error. | |
| static FontManager * | getSingletonPtr (void) |
| Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0. | |
|
|
a list of font names that are currently loaded in the FontManager, retrieved by FontManager::getFontList()
|
|
|
Returns an ImageryPtrList containing ImageryPtrs for each font atlas. This is a debugging tool, so you can retrieve and display font atlases in their raw form. The validity of the returned list is very short, and it can easily become invalidated by calls to render new font glyphs or by the loading and unloading of FontSets. The best course of action is to use the obtained information immediately, and re-request it each time you need it (especially between frames) as its contents could have changed.
|
|
|
Retrieves the default font.
|
|
|
Returns a FontList containing the names of all loaded fonts, which can then be fed to GetFontSet() or used with Font.
|
|
|
Retrieves a font by name.
|
|
|
Retrieve the current singleton, if one exists. If none exists, this will cause an error.
|
|
|
Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0.
|
|
||||||||||||
|
Registers a new font.
If an existing font already exists with the same
|
|
|
Sets the default font. This sets the default font and font size (in points) that is used when no font is specified. |
|
|
UnRegisters a loaded font by FontSetPtr.
|
|
|
UnRegisters a loaded font by name.
|
|
|
UnRegisters a loaded font by handle. This function will bind the given Font handle if it is not already bound. |