Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIFontManager_h_
28 #define _CEGUIFontManager_h_
30 #include "CEGUI/Singleton.h"
31 #include "CEGUI/NamedXMLResourceManager.h"
32 #include "CEGUI/Font.h"
33 #include "CEGUI/Font_xmlHandler.h"
34 #include "CEGUI/IteratorBase.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4275)
39 # pragma warning(disable : 4251)
112 const bool anti_aliased,
113 const String& font_filename,
114 const String& resource_group =
"",
116 const Sizef& native_res =
Sizef(640.0f, 480.0f),
160 const String& imageset_filename,
161 const String& resource_group =
"",
163 const Sizef& native_res =
Sizef(640.0f, 480.0f),
207 #if defined(_MSC_VER)
208 # pragma warning(pop)
211 #endif // end of guard _CEGUIFontManager_h_
Class that encapsulates a typeface.
Definition: Font.h:62
Templatised manager class that loads and manages named XML based resources.
Definition: NamedXMLResourceManager.h:109
Class providing a shared library of Font objects to the system.
Definition: FontManager.h:61
Definition: Singleton.h:56
@ ASM_Disabled
No auto scaling takes place.
Definition: Image.h:42
FontManager()
Constructor.
~FontManager()
Destructor.
XMLResourceExistsAction
Possible actions when loading an XML resource that already exists.
Definition: NamedXMLResourceManager.h:43
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Font & createPixmapFont(const String &font_name, const String &imageset_filename, const String &resource_group="", const AutoScaledMode auto_scaled=ASM_Disabled, const Sizef &native_res=Sizef(640.0f, 480.0f), XMLResourceExistsAction action=XREA_RETURN)
Creates a Pixmap type font.
void writeFontToStream(const String &name, OutStream &out_stream) const
Writes a full XML font file for the specified Font to the given OutStream.
Definition: MemoryAllocatedObject.h:110
ConstMapIterator< ObjectRegistry > FontIterator
ConstBaseIterator type definition.
Definition: FontManager.h:189
AutoScaledMode
Definition: Image.h:40
iterator class for maps
Definition: IteratorBase.h:197
@ XREA_RETURN
Do not load the resource, return the existing instance.
Definition: NamedXMLResourceManager.h:45
std::ostream OutStream
Output stream class.
Definition: Base.h:185
Font & createFreeTypeFont(const String &font_name, const float point_size, const bool anti_aliased, const String &font_filename, const String &resource_group="", const AutoScaledMode auto_scaled=ASM_Disabled, const Sizef &native_res=Sizef(640.0f, 480.0f), XMLResourceExistsAction action=XREA_RETURN)
Creates a FreeType type font.
String class used within the GUI system.
Definition: String.h:64
FontIterator getIterator() const
Return a FontManager::FontIterator object to iterate over the available Font objects.
void notifyDisplaySizeChanged(const Sizef &size)
Notify the FontManager that display size may have changed.