Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIPixmapFont_h_
28 #define _CEGUIPixmapFont_h_
30 #include "CEGUI/Font.h"
43 class PixmapFont :
public Font
78 PixmapFont(
const String& font_name,
const String& imageset_filename,
79 const String& resource_group =
"",
81 const Sizef& native_res = Sizef(640.0f, 480.0f));
86 void defineMapping(
const utf32 codepoint,
const String& image_name,
87 const float horz_advance);
88 void defineMapping(
const String& value);
126 #endif // end of guard _CEGUIPixmapFont_h_
PixmapFont(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))
Constructor for Pixmap type fonts.
@ ASM_Disabled
No auto scaling takes place.
Definition: Image.h:90
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
void setImageNamePrefix(const String &name_prefix)
Set image name prefix font should use for it's glyphs.
String d_imageNamePrefix
The Image name prefix used for the glyphs.
Definition: PixmapFont.h:165
float d_origHorzScaling
Current X scaling for glyph images.
Definition: PixmapFont.h:167
void writeXMLToStream_impl(XMLSerializer &xml_stream) const
implementaion version of writeXMLToStream.
bool d_imagesetOwner
true if we own the imageset
Definition: PixmapFont.h:169
AutoScaledMode
Definition: Image.h:63
void addPixmapFontProperties()
Register all properties of this class.
const String & getImageNamePrefix() const
Return the image name prefix that the font is using for it's glyphs.
void reinit()
Initialize the imageset.
void updateFont()
Update the font as needed, according to the current parameters.