how to use bitmap fonts?
Posted: Wed May 21, 2008 05:54
I want use bitmap fonts,my mothed is :
1) create a font file MyFont.font, the content in the file is:
<?xml version="1.0" ?>
<Font Name="MyFont" Filename="TaharezLook.imageset" Type="Static" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true">
<Mapping Codepoint="65" Image="ClientBrush" />
</Font>
2) create the bitmap font:
CEGUI::FontManager::getSingleton().createFont("MyFont.font");
when I run it ,there is a message for error:
FontManager::createFont - The value for the Font:Type attribute 'Static' is unknown.
how to fix it ?
1) create a font file MyFont.font, the content in the file is:
<?xml version="1.0" ?>
<Font Name="MyFont" Filename="TaharezLook.imageset" Type="Static" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true">
<Mapping Codepoint="65" Image="ClientBrush" />
</Font>
2) create the bitmap font:
CEGUI::FontManager::getSingleton().createFont("MyFont.font");
when I run it ,there is a message for error:
FontManager::createFont - The value for the Font:Type attribute 'Static' is unknown.
how to fix it ?