Adding a pixmap font

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

dode74
Just popping in
Just popping in
Posts: 15
Joined: Tue Feb 25, 2014 12:23

Adding a pixmap font

Postby dode74 » Fri Mar 07, 2014 20:41

So, I've created the font (using this), and the imageset file, and the font file and added the files into the font folder. I've added the imageset to the scheme. There are widgets (I believe that is the term) which point to this font as an attribute. It isn't showing up. The old font which used to have the same name is instead (I archived the old font with a different name), and CEGUI gives an error message in the log telling me that image 0032 could not be found. 0032 is there: it's the space. It was set up as 0*0 and at position 0*0, but changing those to a blank part of the image file doesn't help either: I get the same error message. There are bald patches above my temples where I have pulled hair out! Please help!

The log error message:

Code: Select all

05/03/2014 06:17:34 (InfL1)   Attempting to create Font from the information specified in file 'Data/Gui/Fonts/English/BB_Infos-03.font'.
05/03/2014 06:17:34 (InfL1)   Attempting to create an Imageset from the information specified in file 'BBFontDode.imageset'.
05/03/2014 06:17:34 (Error)   Imageset::getImage - The Image named '0032' could not be found in Imageset ''.
05/03/2014 06:17:34 (InfL1)   Font 'BBFontDode' has been destroyed.
05/03/2014 06:17:34 (Error)   FontManager::createFont - loading of Font from file 'Data/Gui/Fonts/English/BB_Infos-03.font' failed.
05/03/2014 06:17:34 (Error)   FontManager::createFont - loading of Font from file 'Data/Gui/Fonts/English/BB_Infos-03.font' failed.
05/03/2014 06:17:34 (Error)   Exception: FontManager::createFont - loading of Font from file 'Data/Gui/Fonts/English/BB_Infos-03.font' failed.


The image (BBFontDode.png): http://i1013.photobucket.com/albums/af2 ... 1733cd.png

The imageset (BBFontDode.imageset):

Code: Select all

<?xml version="1.0" ?>
<Imageset Name="BBFontDode" Imagefile="BBFontDode.png" NativeHorzRes="800" NativeVertRes="600" AutoScaled="false">
<Image Name="0032" XPos="0" YPos="0" Width="0" Height="0" XOffset="0"/>
<Image Name="0033" XPos="0" YPos="152" Width="26" Height="152" XOffset="3"/>
<Image Name="0034" XPos="0" YPos="304" Width="31" Height="152" XOffset="2"/>
<Image Name="0035" XPos="42" YPos="0" Width="76" Height="152" XOffset="2"/>
<Image Name="0036" XPos="42" YPos="152" Width="50" Height="152" XOffset="2"/>
<Image Name="0037" XPos="118" YPos="0" Width="80" Height="152" XOffset="2"/>
<Image Name="0038" XPos="42" YPos="304" Width="55" Height="152" XOffset="2"/>
<Image Name="0039" XPos="0" YPos="456" Width="22" Height="152" XOffset="1"/>
<Image Name="0040" XPos="0" YPos="608" Width="25" Height="152" XOffset="2"/>
<Image Name="0041" XPos="0" YPos="760" Width="27" Height="152" XOffset="1"/>
<Image Name="0042" XPos="42" YPos="456" Width="52" Height="152" XOffset="-3"/>
<Image Name="0043" XPos="42" YPos="608" Width="52" Height="152" XOffset="1"/>
<Image Name="0044" XPos="92" YPos="152" Width="24" Height="152" XOffset="2"/>
<Image Name="0045" XPos="42" YPos="760" Width="42" Height="152" XOffset="3"/>
<Image Name="0046" XPos="84" YPos="760" Width="25" Height="152" XOffset="3"/>
<Image Name="0047" XPos="198" YPos="0" Width="52" Height="152" XOffset="-1"/>
<Image Name="0048" XPos="250" YPos="0" Width="53" Height="152" XOffset="3"/>
<Image Name="0049" XPos="303" YPos="0" Width="37" Height="152" XOffset="1"/>
<Image Name="0050" XPos="340" YPos="0" Width="51" Height="152" XOffset="3"/>
<Image Name="0051" XPos="391" YPos="0" Width="48" Height="152" XOffset="3"/>
<Image Name="0052" XPos="439" YPos="0" Width="53" Height="152" XOffset="0"/>
<Image Name="0053" XPos="492" YPos="0" Width="51" Height="152" XOffset="3"/>
<Image Name="0054" XPos="543" YPos="0" Width="56" Height="152" XOffset="3"/>
<Image Name="0055" XPos="599" YPos="0" Width="48" Height="152" XOffset="2"/>
<Image Name="0056" XPos="647" YPos="0" Width="54" Height="152" XOffset="3"/>
<Image Name="0057" XPos="701" YPos="0" Width="56" Height="152" XOffset="2"/>
<Image Name="0058" XPos="757" YPos="0" Width="25" Height="152" XOffset="3"/>
<Image Name="0059" XPos="94" YPos="456" Width="24" Height="152" XOffset="2"/>
<Image Name="0060" XPos="782" YPos="0" Width="45" Height="152" XOffset="1"/>
<Image Name="0061" XPos="827" YPos="0" Width="48" Height="152" XOffset="3"/>
<Image Name="0062" XPos="875" YPos="0" Width="48" Height="152" XOffset="-2"/>
<Image Name="0063" XPos="923" YPos="0" Width="48" Height="152" XOffset="1"/>
<Image Name="0064" XPos="118" YPos="152" Width="63" Height="152" XOffset="3"/>
<Image Name="0065" XPos="181" YPos="152" Width="67" Height="152" XOffset="-2"/>
<Image Name="0066" XPos="118" YPos="304" Width="59" Height="152" XOffset="2"/>
<Image Name="0067" XPos="971" YPos="0" Width="49" Height="152" XOffset="3"/>
<Image Name="0068" XPos="118" YPos="456" Width="61" Height="152" XOffset="2"/>
<Image Name="0069" XPos="118" YPos="608" Width="53" Height="152" XOffset="2"/>
<Image Name="0070" XPos="118" YPos="760" Width="52" Height="152" XOffset="2"/>
<Image Name="0071" XPos="181" YPos="304" Width="54" Height="152" XOffset="3"/>
<Image Name="0072" XPos="181" YPos="456" Width="67" Height="152" XOffset="2"/>
<Image Name="0073" XPos="181" YPos="608" Width="34" Height="152" XOffset="1"/>
<Image Name="0074" XPos="181" YPos="760" Width="49" Height="152" XOffset="1"/>
<Image Name="0075" XPos="248" YPos="152" Width="67" Height="152" XOffset="2"/>
<Image Name="0076" XPos="315" YPos="152" Width="50" Height="152" XOffset="2"/>
<Image Name="0077" XPos="365" YPos="152" Width="74" Height="152" XOffset="2"/>
<Image Name="0078" XPos="439" YPos="152" Width="63" Height="152" XOffset="2"/>
<Image Name="0079" XPos="502" YPos="152" Width="56" Height="152" XOffset="3"/>
<Image Name="0080" XPos="558" YPos="152" Width="58" Height="152" XOffset="2"/>
<Image Name="0081" XPos="616" YPos="152" Width="56" Height="152" XOffset="2"/>
<Image Name="0082" XPos="672" YPos="152" Width="65" Height="152" XOffset="2"/>
<Image Name="0083" XPos="737" YPos="152" Width="51" Height="152" XOffset="3"/>
<Image Name="0084" XPos="788" YPos="152" Width="52" Height="152" XOffset="2"/>
<Image Name="0085" XPos="840" YPos="152" Width="63" Height="152" XOffset="1"/>
<Image Name="0086" XPos="903" YPos="152" Width="67" Height="152" XOffset="-2"/>
<Image Name="0087" XPos="248" YPos="304" Width="100" Height="152" XOffset="-2"/>
<Image Name="0088" XPos="248" YPos="456" Width="70" Height="152" XOffset="-2"/>
<Image Name="0089" XPos="248" YPos="608" Width="62" Height="152" XOffset="0"/>
<Image Name="0090" XPos="970" YPos="152" Width="52" Height="152" XOffset="2"/>
<Image Name="0091" XPos="94" YPos="608" Width="24" Height="152" XOffset="3"/>
<Image Name="0092" XPos="248" YPos="760" Width="52" Height="152" XOffset="-1"/>
<Image Name="0093" XPos="215" YPos="608" Width="28" Height="152" XOffset="0"/>
<Image Name="0094" XPos="300" YPos="760" Width="46" Height="152" XOffset="2"/>
<Image Name="0095" XPos="348" YPos="304" Width="59" Height="152" XOffset="3"/>
<Image Name="0096" XPos="310" YPos="608" Width="35" Height="152" XOffset="1"/>
<Image Name="0097" XPos="348" YPos="456" Width="57" Height="152" XOffset="-2"/>
<Image Name="0098" XPos="348" YPos="608" Width="50" Height="152" XOffset="2"/>
<Image Name="0099" XPos="348" YPos="760" Width="42" Height="152" XOffset="3"/>
<Image Name="0100" XPos="407" YPos="304" Width="52" Height="152" XOffset="2"/>
<Image Name="0101" XPos="459" YPos="304" Width="45" Height="152" XOffset="2"/>
<Image Name="0102" XPos="504" YPos="304" Width="44" Height="152" XOffset="2"/>
<Image Name="0103" XPos="548" YPos="304" Width="46" Height="152" XOffset="3"/>
<Image Name="0104" XPos="594" YPos="304" Width="56" Height="152" XOffset="2"/>
<Image Name="0105" XPos="650" YPos="304" Width="31" Height="152" XOffset="1"/>
<Image Name="0106" XPos="681" YPos="304" Width="41" Height="152" XOffset="1"/>
<Image Name="0107" XPos="722" YPos="304" Width="56" Height="152" XOffset="2"/>
<Image Name="0108" XPos="778" YPos="304" Width="43" Height="152" XOffset="2"/>
<Image Name="0109" XPos="821" YPos="304" Width="62" Height="152" XOffset="2"/>
<Image Name="0110" XPos="883" YPos="304" Width="53" Height="152" XOffset="2"/>
<Image Name="0111" XPos="936" YPos="304" Width="47" Height="152" XOffset="3"/>
<Image Name="0112" XPos="407" YPos="456" Width="49" Height="152" XOffset="2"/>
<Image Name="0113" XPos="407" YPos="608" Width="47" Height="152" XOffset="2"/>
<Image Name="0114" XPos="456" YPos="456" Width="55" Height="152" XOffset="2"/>
<Image Name="0115" XPos="407" YPos="760" Width="43" Height="152" XOffset="3"/>
<Image Name="0116" XPos="456" YPos="608" Width="44" Height="152" XOffset="2"/>
<Image Name="0117" XPos="456" YPos="760" Width="53" Height="152" XOffset="1"/>
<Image Name="0118" XPos="511" YPos="456" Width="57" Height="152" XOffset="-2"/>
<Image Name="0119" XPos="568" YPos="456" Width="83" Height="152" XOffset="-2"/>
<Image Name="0120" XPos="651" YPos="456" Width="59" Height="152" XOffset="-2"/>
<Image Name="0121" XPos="511" YPos="608" Width="53" Height="152" XOffset="0"/>
<Image Name="0122" XPos="511" YPos="760" Width="43" Height="152" XOffset="3"/>
<Image Name="0123" XPos="318" YPos="456" Width="29" Height="152" XOffset="0"/>
<Image Name="0124" XPos="26" YPos="152" Width="15" Height="152" XOffset="2"/>
<Image Name="0125" XPos="983" YPos="304" Width="30" Height="152" XOffset="-1"/>
<Image Name="0126" XPos="0" YPos="0" Width="42" Height="152" XOffset="1"/>
</Imageset>


The font file (BB_Infos-03.font):

Code: Select all

<?xml version="1.0" ?>
<Font Name="BBFontDode" Filename="BBFontDode.imageset" Type="Pixmap" NativeHorzRes="800" NativeVertRes="600" AutoScaled="false">
<Mapping Codepoint="0032" Image="0032" HorzAdvance="19"/>
<Mapping Codepoint="0033" Image="0033" HorzAdvance="22" />
<Mapping Codepoint="0034" Image="0034" HorzAdvance="27" />
<Mapping Codepoint="0035" Image="0035" HorzAdvance="72" />
<Mapping Codepoint="0036" Image="0036" HorzAdvance="46" />
<Mapping Codepoint="0037" Image="0037" HorzAdvance="76" />
<Mapping Codepoint="0038" Image="0038" HorzAdvance="51" />
<Mapping Codepoint="0039" Image="0039" HorzAdvance="18" />
<Mapping Codepoint="0040" Image="0040" HorzAdvance="21" />
<Mapping Codepoint="0041" Image="0041" HorzAdvance="23" />
<Mapping Codepoint="0042" Image="0042" HorzAdvance="42" />
<Mapping Codepoint="0043" Image="0043" HorzAdvance="48" />
<Mapping Codepoint="0044" Image="0044" HorzAdvance="20" />
<Mapping Codepoint="0045" Image="0045" HorzAdvance="38" />
<Mapping Codepoint="0046" Image="0046" HorzAdvance="21" />
<Mapping Codepoint="0047" Image="0047" HorzAdvance="46" />
<Mapping Codepoint="0048" Image="0048" HorzAdvance="49" />
<Mapping Codepoint="0049" Image="0049" HorzAdvance="33" />
<Mapping Codepoint="0050" Image="0050" HorzAdvance="47" />
<Mapping Codepoint="0051" Image="0051" HorzAdvance="44" />
<Mapping Codepoint="0052" Image="0052" HorzAdvance="49" />
<Mapping Codepoint="0053" Image="0053" HorzAdvance="47" />
<Mapping Codepoint="0054" Image="0054" HorzAdvance="52" />
<Mapping Codepoint="0055" Image="0055" HorzAdvance="44" />
<Mapping Codepoint="0056" Image="0056" HorzAdvance="50" />
<Mapping Codepoint="0057" Image="0057" HorzAdvance="52" />
<Mapping Codepoint="0058" Image="0058" HorzAdvance="21" />
<Mapping Codepoint="0059" Image="0059" HorzAdvance="20" />
<Mapping Codepoint="0060" Image="0060" HorzAdvance="39" />
<Mapping Codepoint="0061" Image="0061" HorzAdvance="44" />
<Mapping Codepoint="0062" Image="0062" HorzAdvance="42" />
<Mapping Codepoint="0063" Image="0063" HorzAdvance="44" />
<Mapping Codepoint="0064" Image="0064" HorzAdvance="59" />
<Mapping Codepoint="0065" Image="0065" HorzAdvance="59" />
<Mapping Codepoint="0066" Image="0066" HorzAdvance="55" />
<Mapping Codepoint="0067" Image="0067" HorzAdvance="45" />
<Mapping Codepoint="0068" Image="0068" HorzAdvance="57" />
<Mapping Codepoint="0069" Image="0069" HorzAdvance="49" />
<Mapping Codepoint="0070" Image="0070" HorzAdvance="48" />
<Mapping Codepoint="0071" Image="0071" HorzAdvance="50" />
<Mapping Codepoint="0072" Image="0072" HorzAdvance="63" />
<Mapping Codepoint="0073" Image="0073" HorzAdvance="30" />
<Mapping Codepoint="0074" Image="0074" HorzAdvance="45" />
<Mapping Codepoint="0075" Image="0075" HorzAdvance="61" />
<Mapping Codepoint="0076" Image="0076" HorzAdvance="46" />
<Mapping Codepoint="0077" Image="0077" HorzAdvance="70" />
<Mapping Codepoint="0078" Image="0078" HorzAdvance="59" />
<Mapping Codepoint="0079" Image="0079" HorzAdvance="52" />
<Mapping Codepoint="0080" Image="0080" HorzAdvance="54" />
<Mapping Codepoint="0081" Image="0081" HorzAdvance="52" />
<Mapping Codepoint="0082" Image="0082" HorzAdvance="61" />
<Mapping Codepoint="0083" Image="0083" HorzAdvance="47" />
<Mapping Codepoint="0084" Image="0084" HorzAdvance="48" />
<Mapping Codepoint="0085" Image="0085" HorzAdvance="59" />
<Mapping Codepoint="0086" Image="0086" HorzAdvance="59" />
<Mapping Codepoint="0087" Image="0087" HorzAdvance="92" />
<Mapping Codepoint="0088" Image="0088" HorzAdvance="62" />
<Mapping Codepoint="0089" Image="0089" HorzAdvance="58" />
<Mapping Codepoint="0090" Image="0090" HorzAdvance="48" />
<Mapping Codepoint="0091" Image="0091" HorzAdvance="20" />
<Mapping Codepoint="0092" Image="0092" HorzAdvance="46" />
<Mapping Codepoint="0093" Image="0093" HorzAdvance="24" />
<Mapping Codepoint="0094" Image="0094" HorzAdvance="42" />
<Mapping Codepoint="0095" Image="0095" HorzAdvance="55" />
<Mapping Codepoint="0096" Image="0096" HorzAdvance="28" />
<Mapping Codepoint="0097" Image="0097" HorzAdvance="49" />
<Mapping Codepoint="0098" Image="0098" HorzAdvance="46" />
<Mapping Codepoint="0099" Image="0099" HorzAdvance="38" />
<Mapping Codepoint="0100" Image="0100" HorzAdvance="48" />
<Mapping Codepoint="0101" Image="0101" HorzAdvance="41" />
<Mapping Codepoint="0102" Image="0102" HorzAdvance="40" />
<Mapping Codepoint="0103" Image="0103" HorzAdvance="42" />
<Mapping Codepoint="0104" Image="0104" HorzAdvance="52" />
<Mapping Codepoint="0105" Image="0105" HorzAdvance="27" />
<Mapping Codepoint="0106" Image="0106" HorzAdvance="37" />
<Mapping Codepoint="0107" Image="0107" HorzAdvance="50" />
<Mapping Codepoint="0108" Image="0108" HorzAdvance="39" />
<Mapping Codepoint="0109" Image="0109" HorzAdvance="58" />
<Mapping Codepoint="0110" Image="0110" HorzAdvance="49" />
<Mapping Codepoint="0111" Image="0111" HorzAdvance="43" />
<Mapping Codepoint="0112" Image="0112" HorzAdvance="45" />
<Mapping Codepoint="0113" Image="0113" HorzAdvance="43" />
<Mapping Codepoint="0114" Image="0114" HorzAdvance="51" />
<Mapping Codepoint="0115" Image="0115" HorzAdvance="39" />
<Mapping Codepoint="0116" Image="0116" HorzAdvance="40" />
<Mapping Codepoint="0117" Image="0117" HorzAdvance="49" />
<Mapping Codepoint="0118" Image="0118" HorzAdvance="49" />
<Mapping Codepoint="0119" Image="0119" HorzAdvance="75" />
<Mapping Codepoint="0120" Image="0120" HorzAdvance="51" />
<Mapping Codepoint="0121" Image="0121" HorzAdvance="49" />
<Mapping Codepoint="0122" Image="0122" HorzAdvance="39" />
<Mapping Codepoint="0123" Image="0123" HorzAdvance="24" />
<Mapping Codepoint="0124" Image="0124" HorzAdvance="11" />
<Mapping Codepoint="0125" Image="0125" HorzAdvance="25" />
<Mapping Codepoint="0126" Image="0126" HorzAdvance="38" />
</Font>


The scheme (BBLook.scheme):

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<GUIScheme Name="BBLook">
   <Imageset Name="BBFontDode" Filename="Data/Gui/Fonts/English/BBFontDode.imageset"/>
   <Imageset Name="BBLook" Filename="Data/Gui/Imagesets/BBLook.imageset"/>
   <Imageset Name="BBLook2" Filename="Data/Gui/Imagesets/BBLook2.imageset"/>
   <Imageset Name="BBLook3" Filename="Data/Gui/Imagesets/BBLook3.imageset"/>
   <Imageset Name="BBLookDode" Filename="Data/Gui/Imagesets/BBLookDode.imageset"/>
   <Imageset Name="BBInGame" Filename="Data/Gui/Imagesets/BBInGame.imageset"/>
   <Imageset Name="BBInGame2" Filename="Data/Gui/Imagesets/BBInGame2.imageset"/>
   <Imageset Name="BBLoading" Filename="Data/Gui/Imagesets/BBLoading.imageset"/>
   <Imageset Name="BBLoading_Undead" Filename="Data/Gui/Imagesets/BBLoading_Undead.imageset"/>
   <Imageset Name="CompetitionRules_Menu" Filename="Data/Gui/Imagesets/CompetitionRules_Menu.imageset"/>
   <Imageset Name="BBBackground00" Filename="Data/Gui/Imagesets/BBBackground00.imageset"/>
   <Imageset Name="BBBackground01" Filename="Data/Gui/Imagesets/BBBackground01.imageset"/>
   <Imageset Name="BBBackground02" Filename="Data/Gui/Imagesets/BBBackground02.imageset"/>
   <Imageset Name="BBBackground04" Filename="Data/Gui/Imagesets/BBBackground04.imageset"/>
   <Imageset Name="BBBackgroundMap01" Filename="Data/Gui/Imagesets/BBBackgroundMap01.imageset"/>
   <Imageset Name="BBBackgroundMap02" Filename="Data/Gui/Imagesets/BBBackgroundMap02.imageset"/>
   <Imageset Name="BBBackgroundBottom" Filename="Data/Gui/Imagesets/BBBackgroundBottom.imageset"/>
   <Imageset Name="BBBackgroundWCE" Filename="Data/Gui/Imagesets/BBBackgroundWCE.imageset"/>
   <Imageset Name="BBBackgroundMainMenu" Filename="Data/Gui/Imagesets/BBBackgroundMainMenu.imageset"/>
   <Imageset Name="BBBackgroundMainMenuNew" Filename="Data/Gui/Imagesets/BBBackgroundMainMenuNew.imageset"/>
   <Imageset Name="BBBackgroundMainMenuWCE" Filename="Data/Gui/Imagesets/BBBackgroundMainMenuWCE.imageset"/>
   <Imageset Name="BBBackgroundMainMenuCollector" Filename="Data/Gui/Imagesets/BBBackgroundMainMenuCollector.imageset"/>
   <Imageset Name="BBBackgroundClassicVsBlitz" Filename="Data/Gui/Imagesets/BBBackgroundClassicVsBlitz.imageset"/>
   <Imageset Name="BB_TD_TO" Filename="Data/Gui/Imagesets/BB_TD_TO.imageset"/>
   <Imageset Name="BBNewspaper" Filename="Data/Gui/Imagesets/BBNewspaper.imageset"/>
   <Imageset Name="BBParchment" Filename="Data/Gui/Imagesets/BBParchment.imageset"/>
   <Imageset Name="WCETrophy" Filename="Data/Gui/Imagesets/WCETrophy.imageset"/>
   <Imageset Name="DB_English" Filename="Data/Gui/Imagesets/DB_English.imageset"/>
   <LookNFeel Filename="Data/Gui/Looknfeel/BBLook.looknfeel"/>
   <!--<WindowRendererSet Filename="CEGUIFalagardWRBase" />//-->
   <FalagardMapping WindowType="BBLook/VUMeter" TargetType="CEGUI/ProgressBar" Renderer="BB/ProgressBar" LookNFeel="BBLook/VUMeter"/>
   <FalagardMapping WindowType="BBLook/ProgressBar" TargetType="CEGUI/ProgressBar" Renderer="BB/ProgressBar" LookNFeel="BBLook/ProgressBar"/>
   <FalagardMapping WindowType="BBLook/Tooltip" TargetType="CEGUI/Tooltip" Renderer="BB/Tooltip" LookNFeel="BBLook/Tooltip"/>
   <FalagardMapping WindowType="BBLook/EditableTable01" TargetType="CEGUI/MultiLineEditbox" Renderer="BB/MultiLineEditbox" LookNFeel="BBLook/EditableTable01"/>
   <FalagardMapping WindowType="BBLook/EditableLine02" TargetType="CEGUI/Editbox" Renderer="BB/Editbox" LookNFeel="BBLook/EditableLine02"/>
   <FalagardMapping WindowType="BBLook/BBComboBox" TargetType="CEGUI/Combobox" Renderer="BB/Default" LookNFeel="BBLook/BBComboBox"/>
   <FalagardMapping WindowType="BBLook/BBComboBoxRevert" TargetType="CEGUI/Combobox" Renderer="BB/Default" LookNFeel="BBLook/BBComboBoxRevert"/>
   <FalagardMapping WindowType="BBLook/ComboEditbox" TargetType="CEGUI/Editbox" Renderer="BB/Editbox" LookNFeel="BBLook/ComboEditbox"/>
   <FalagardMapping WindowType="BBLook/ComboDropList" TargetType="CEGUI/ComboDropList" Renderer="BB/Listbox" LookNFeel="BBLook/ComboDropList"/>
   <FalagardMapping WindowType="BBLook/StaticText" TargetType="DefaultWindow" Renderer="BB/StaticText" LookNFeel="BBLook/StaticText"/>
   <FalagardMapping WindowType="BBLook/ButtonText" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonText"/>
   <FalagardMapping WindowType="BBLook/ButtonMenu" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonMenu"/>
   <FalagardMapping WindowType="BBLook/StaticTextVariable" TargetType="DefaultWindow" Renderer="BB/StaticText" LookNFeel="BBLook/StaticTextVariable"/>
   <FalagardMapping WindowType="BBLook/StaticImage" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/StaticImage"/>
   <FalagardMapping WindowType="BBLook/BBPopularity" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/BBPopularity"/>
   <FalagardMapping WindowType="BBLook/BBSkills" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/BBSkills"/>
   <FalagardMapping WindowType="BBLook/ButtonEquipment" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/ButtonEquipment"/>
   <FalagardMapping WindowType="BBLook/RadioButton" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/RadioButton"/>
   <FalagardMapping WindowType="BBLook/RadioButton02" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/RadioButton02"/>
   <FalagardMapping WindowType="BBLook/RadioButton03" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/RadioButton03"/>
   <FalagardMapping WindowType="BBLook/ONOFFButton" TargetType="CEGUI/Checkbox" Renderer="BB/ToggleButton" LookNFeel="BBLook/ONOFFButton"/>
   <FalagardMapping WindowType="BBLook/Checkbox" TargetType="CEGUI/Checkbox" Renderer="BB/ToggleButton" LookNFeel="BBLook/Checkbox"/>
   <FalagardMapping WindowType="BBLook/SystemButton" TargetType="CEGUI/PushButton" Renderer="BB/SystemButton" LookNFeel="BBLook/ImageButton"/>
   <FalagardMapping WindowType="BBLook/ImageButton" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ImageButton"/>
   <FalagardMapping WindowType="BBLook/DiceButton" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/DiceButton"/>
   <FalagardMapping WindowType="BBLook/DeleteList" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/DeleteList"/>
   <FalagardMapping WindowType="BBLook/ButtonMoney" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonMoney"/>
   <FalagardMapping WindowType="BBLook/ButtonTraining" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonTraining"/>
   <FalagardMapping WindowType="BBLook/ButtonNegociation" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonNegociation"/>
   <FalagardMapping WindowType="BBLook/ButtonLevelUp" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonLevelUp"/>
   <FalagardMapping WindowType="BBLook/ButtonSave" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonSave"/>
   <FalagardMapping WindowType="BBLook/ButtonStop" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonStop"/>
   <FalagardMapping WindowType="BBLook/ButtonOk" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonOk"/>
   <FalagardMapping WindowType="BBLook/ButtonLast" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonLast"/>
   <FalagardMapping WindowType="BBLook/ButtonNext" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonNext"/>
   <FalagardMapping WindowType="BBLook/ButtonStars" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonStars"/>
   <FalagardMapping WindowType="BBLook/Button01" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Button01"/>
   <FalagardMapping WindowType="BBLook/Button02" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Button02"/>
   <FalagardMapping WindowType="BBLook/Button03" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Button03"/>
   <FalagardMapping WindowType="BBLook/ButtonDownScrollVerticalMini" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonDownScrollVerticalMini"/>
   <FalagardMapping WindowType="BBLook/ScrollVertical" TargetType="CEGUI/Scrollbar" Renderer="BB/Scrollbar" LookNFeel="BBLook/ScrollVertical"/>
   <FalagardMapping WindowType="BBLook/ScrollVerticalBar" TargetType="CEGUI/Thumb" Renderer="BB/Button" LookNFeel="BBLook/ScrollVerticalBar"/>
   <FalagardMapping WindowType="BBLook/ScrollVerticalMini" TargetType="CEGUI/Scrollbar" Renderer="BB/Scrollbar" LookNFeel="BBLook/ScrollVerticalMini"/>
   <FalagardMapping WindowType="BBLook/ScrollVerticalMiniBar" TargetType="CEGUI/Thumb" Renderer="BB/Button" LookNFeel="BBLook/ScrollVerticalMiniBar"/>
   <FalagardMapping WindowType="BBLook/BorderAvatarFrameWindow" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/BorderAvatarFrameWindow"/>
   <FalagardMapping WindowType="BBLook/BBConsoleTitle" TargetType="CEGUI/Titlebar" Renderer="BB/Titlebar" LookNFeel="BBLook/BBConsoleTitle"/>
   <FalagardMapping WindowType="BBLook/Popup" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/Popup"/>
   <FalagardMapping WindowType="BBLook/MouseRect" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/MouseRect"/>
   <FalagardMapping WindowType="BBLook/InGame_MultiLineEditboxLog" TargetType="CEGUI/MultiLineEditbox" Renderer="BB/MultiLineEditbox" LookNFeel="BBLook/InGame_MultiLineEditboxLog"/>
   <FalagardMapping WindowType="BBLook/InGame_RadioButton_IA" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/InGame_RadioButton_IA"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_HypnoticGaze" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_HypnoticGaze"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_HandofGod" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_HandofGod"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_Sprint" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_Sprint"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_Pass" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_Pass"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_HandOff" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_HandOff"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_Bomb" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_Bomb"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_Leap" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_Leap"/>
   <FalagardMapping WindowType="BBLook/InGame_Popup_ChatLog" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/InGame_Popup_ChatLog"/>
   <FalagardMapping WindowType="BBLook/InGame_VUMeter" TargetType="CEGUI/ProgressBar" Renderer="BB/ProgressBar" LookNFeel="BBLook/InGame_VUMeter"/>
   <FalagardMapping WindowType="BBLook/InGame_EditableLine" TargetType="CEGUI/Editbox" Renderer="BB/Editbox" LookNFeel="BBLook/InGame_EditableLine"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_SkillsNext" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_SkillsNext"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_SkillsLast" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_SkillsLast"/>
   <FalagardMapping WindowType="BBLook/InGame_RadioButton_Log" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/InGame_RadioButton_Log"/>
   <FalagardMapping WindowType="BBLook/InGame_Popup_Informations" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/InGame_Popup_Informations"/>
   <FalagardMapping WindowType="BBLook/LEBackground" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/LEBackground"/>
   <FalagardMapping WindowType="BBLook/BBCampaignMapButton" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/BBCampaignMapButton"/>
   <FalagardMapping WindowType="BBLook/InGame_Button_Item" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/InGame_Button_Item"/>
   <FalagardMapping WindowType="BBLook/InGame_Progress_Item" TargetType="CEGUI/ProgressBar" Renderer="BB/ProgressBar" LookNFeel="BBLook/InGame_Progress_Item"/>
   <FalagardMapping WindowType="BBLook/StaticImageSupportTitle" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/StaticImageSupportTitle"/>
   <FalagardMapping WindowType="BBLook/StaticImageSupport" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/StaticImageSupport"/>
   <FalagardMapping WindowType="BBLook/StaticImageSupportInvitation" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/StaticImageSupportInvitation"/>
   <FalagardMapping WindowType="BBLook/StaticImageImageWood01" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/StaticImageImageWood01"/>
   <FalagardMapping WindowType="BBLook/StaticImageImageWood02" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/StaticImageImageWood02"/>
   <FalagardMapping WindowType="BBLook/Buttonplus" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Buttonplus"/>
   <FalagardMapping WindowType="BBLook/Buttonmoins" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Buttonmoins"/>
   <FalagardMapping WindowType="BBLook/HorizontalScrollbar" TargetType="CEGUI/Scrollbar" Renderer="BB/Scrollbar" LookNFeel="BBLook/HorizontalScrollbar"/>
   <FalagardMapping WindowType="BBLook/HorizontalScrollbarThumb" TargetType="CEGUI/Thumb" Renderer="BB/Button" LookNFeel="BBLook/HorizontalScrollbarThumb"/>
   <FalagardMapping WindowType="BBLook/OptionScrollbar" TargetType="CEGUI/Scrollbar" Renderer="BB/Scrollbar" LookNFeel="BBLook/OptionScrollbar"/>
   <FalagardMapping WindowType="BBLook/BBColorButton" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/BBColorButton"/>
   <FalagardMapping WindowType="BBLook/Listbox" TargetType="CEGUI/Listbox" Renderer="BB/Listbox" LookNFeel="BBLook/Listbox"/>
   <FalagardMapping WindowType="BBLook/BBListboxSkin" TargetType="CEGUI/Listbox" Renderer="BB/ListboxSkin" LookNFeel="BBLook/BBListboxSkin"/>
   <FalagardMapping WindowType="BBLook/BBMultiColumnList" TargetType="CEGUI/MultiColumnList" Renderer="BB/MultiColumnList" LookNFeel="BBLook/BBMultiColumnList"/>
   <FalagardMapping WindowType="BBLook/BBMultiColumnListSkin" TargetType="CEGUI/MultiColumnList" Renderer="BB/MultiColumnSkinList" LookNFeel="BBLook/BBMultiColumnListSkin"/>
   <FalagardMapping WindowType="BBLook/BBListHeader" TargetType="CEGUI/ListHeader" Renderer="BB/ListHeader" LookNFeel="BBLook/BBListHeader"/>
   <FalagardMapping WindowType="BBLook/BBListHeaderSegment" TargetType="CEGUI/ListHeaderSegment" Renderer="BB/ListHeaderSegment" LookNFeel="BBLook/BBListHeaderSegment"/>
   <FalagardMapping WindowType="BBLook/BBLogo" TargetType="DefaultWindow" Renderer="BB/StaticImage" LookNFeel="BBLook/BBLogo"/>
   <FalagardMapping WindowType="BBLook/PlayerRadioButton" TargetType="CEGUI/RadioButton" Renderer="BB/ToggleButton" LookNFeel="BBLook/PlayerRadioButton"/>
   <FalagardMapping WindowType="BBLook/Flag" TargetType="CEGUI/FrameWindow" Renderer="BB/FrameWindow" LookNFeel="BBLook/Flag"/>
   <FalagardMapping WindowType="BBLook/Filtres" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Filtres"/>
   <FalagardMapping WindowType="BBLook/Refresh" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/Refresh"/>
   <FalagardMapping WindowType="BBLook/ButtonBuy" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonBuy"/>
   <FalagardMapping WindowType="BBLook/ButtonContract" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonContract"/>
   <FalagardMapping WindowType="BBLook/ButtonGoLevelUp" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonGoLevelUp"/>
   <FalagardMapping WindowType="BBLook/ButtonNextPage" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonNextPage"/>
   <FalagardMapping WindowType="BBLook/ButtonPreviousPage" TargetType="CEGUI/PushButton" Renderer="BB/Button" LookNFeel="BBLook/ButtonPreviousPage"/>
</GUIScheme>


The relevant widget from looknfeel (BBLook.looknfeel):

Code: Select all

<WidgetLook name="BBLook/Button01">
    <PropertyDefinition name="AlphaAnim" initialValue="00FFFFFF" redrawOnWrite="1"/>
    <PropertyDefinition name="DisabledImage" redrawOnWrite="1"/>
    <PropertyDefinition name="DisabledTextColour" initialValue="FF7F7F7F" redrawOnWrite="1"/>
    <PropertyDefinition name="HorzImageFormatting" initialValue="Stretched" redrawOnWrite="1"/>
    <PropertyDefinition name="HorzLabelFormatting" initialValue="CentreAligned"/>
    <PropertyDefinition name="HoverImage" redrawOnWrite="1"/>
    <PropertyDefinition name="HoverTextColour" initialValue="FFFFFFFF" redrawOnWrite="1"/>
    <PropertyDefinition name="NormalImage" redrawOnWrite="1"/>
    <PropertyDefinition name="NormalTextColour" initialValue="FFFFFFE8" redrawOnWrite="1"/>
    <PropertyDefinition name="PushedImage" redrawOnWrite="1"/>
    <PropertyDefinition name="PushedTextColour" initialValue="FFFFFFFF" redrawOnWrite="1"/>
    <PropertyDefinition name="VertImageFormatting" initialValue="Stretched" redrawOnWrite="1"/>
    <PropertyDefinition name="VertLabelFormatting" initialValue="CentreAligned"/>
    <Property name="Font" value="BB_Infos-03"/>
    <ImagerySection name="label">

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Adding a pixmap font

Postby Ident » Sat Mar 08, 2014 02:18

I never used that tool you used so i am not sure how up-to-date it is.
You use version 0.8.X right? This is very very important to know. Otherwise it is hard for me to help you...
Whatever version you use though, referencing the imageset in your scheme is not necessary UNLESS the look n' feel of your scheme actively uses parts of the image to render its skin. I assume you have the font glyphs separated from the widget imagery, so i expect you not to need that.

Can you try to write codepoint, image and horzAdvance all capitalised in the way i just did it now? for ecample like this:

Code: Select all

<Mapping codepoint="32" image="0032" horzAdvance="19" />


also try to write the codepoint as 32 instead of 0032 <-- this might not actually make a difference but just to be sure.
Try to mess with just the one line that exists for the whitespace and see if it still throws the error at this part, or manages to get past it to the next glyph.
CrazyEddie: "I don't like GUIs"

dode74
Just popping in
Just popping in
Posts: 15
Joined: Tue Feb 25, 2014 12:23

Re: Adding a pixmap font

Postby dode74 » Sat Mar 08, 2014 08:04

Ok, tried all that. No joy and I get the following error message:

Code: Select all

08/03/2014 08:00:02 (InfL1)   Attempting to create an Imageset from the information specified in file 'BBFontDode.imageset'.
08/03/2014 08:00:02 (Error)   Imageset::getImage - The Image named '' could not be found in Imageset ''.
08/03/2014 08:00:02 (InfL1)   Font 'BBFontDode' has been destroyed.
08/03/2014 08:00:02 (Error)   FontManager::createFont - loading of Font from file 'Data/Gui/Fonts/English/BB_Infos-03.font' failed.
08/03/2014 08:00:02 (Error)   FontManager::createFont - loading of Font from file 'Data/Gui/Fonts/English/BB_Infos-03.font' failed.
08/03/2014 08:00:02 (Error)   Exception: FontManager::createFont - loading of Font from file 'Data/Gui/Fonts/English/BB_Infos-03.font' failed.

So it seems it now has no image or imageset name to look for. This happens whether the imageset is referenced in the scheme or not.

The log tells me this is version 0.6.0 :shock:
I have absolutely no idea how to upgrade it within the context of this game I am trying to mod.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Adding a pixmap font

Postby Ident » Sat Mar 08, 2014 09:05

0.6 is really old. I don't have memory of it. I suggest you download a source or precompiled CEGUI 0.6 version, open the datafiles folder, and look at how FairChar font and imageset are specified there. You use a tool that is much much newer so the chances it outputted files for 0.8 or 0.7 is likely. You will have to compare the old FairChar pixmap datafile and edit the changes in by hand...

Otherwise you can try to update to 0.8.3 but it probably will take quite a while and you might need our help. It's your call..
CrazyEddie: "I don't like GUIs"

dode74
Just popping in
Just popping in
Posts: 15
Joined: Tue Feb 25, 2014 12:23

Re: Adding a pixmap font

Postby dode74 » Sat Mar 08, 2014 18:46

Given that the aim is to release a new UI for the community to use (free, ofc) then it's probably easier to work in 0.6.0 that to require others to upgrade, so I downloaded a version of 0.6.0 and the documentation. Thanks for the pointer.

The xml schema for fonts is as follows:

Code: Select all

<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
   <xsd:element name="Font" type="FontType" />

   <xsd:complexType name="FontType">
      <xsd:sequence>
         <xsd:element name="Mapping" type="MapType" maxOccurs="unbounded" minOccurs="0" />
      </xsd:sequence>
      <xsd:attributeGroup ref="FontAttrs" />
   </xsd:complexType>
   <xsd:complexType name="MapType">
      <xsd:attribute name="Codepoint" type="xsd:nonNegativeInteger" use="required" />
      <xsd:attribute name="Image" type="xsd:string" use="required" />
      <xsd:attribute name="HorzAdvance" type="xsd:integer" use="optional" default="-1" />
   </xsd:complexType>
   <xsd:attributeGroup name="FontAttrs">
      <xsd:attribute name="Name" type="xsd:string" use="required" />
      <xsd:attribute name="Filename" type="xsd:string" use="required" />
      <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional"  default="" />
      <xsd:attribute name="Type" use="required">
         <xsd:simpleType>
            <xsd:restriction base="xsd:string">
               <xsd:enumeration value="FreeType" />
               <xsd:enumeration value="Pixmap" />
            </xsd:restriction>
         </xsd:simpleType>
      </xsd:attribute>
      <xsd:attribute name="Size" type="xsd:nonNegativeInteger" use="optional" default="12" />
      <xsd:attribute name="NativeHorzRes" type="xsd:nonNegativeInteger" use="optional" default="640" />
      <xsd:attribute name="NativeVertRes" type="xsd:nonNegativeInteger" use="optional" default="480" />
      <xsd:attribute name="AutoScaled" type="xsd:boolean" use="optional" default="false" />
      <xsd:attribute name="AntiAlias" type="xsd:boolean" use="optional" default="true" />
   </xsd:attributeGroup>
</xsd:schema>

I'm really not sure how to read this, but it looks like I might need to change things a bit. "Mapping" to "MapType", perhaps? I'm flailing in the dark here, sadly.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Adding a pixmap font

Postby Ident » Sat Mar 08, 2014 19:54

That doesn't look like the file I told you to look at.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests