marshmonkey
18-08-2009 01:42:31
In experimenting with using different fonts in MyGUI, I am able to change the default font by specifying a different ttf file for the "Default" font in the core_font.xml. However I have not been able to set up more than the default font and then have them show up as a choice in the Layout Editor.
Here is my core_font.xml
but in the layout editor the only fonts I can choose from are still Default, DejaVuSans.17, DejaVuSans.14 and ManualFont.
My first thought was that I was not changing the right XML file but I can change the ttf file of the Default font and see the changes in the layout editor.
Here is my core_font.xml
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Font">
<Font name="Default" default_height="17" source="Vera.ttf" size="19" resolution="50" antialias_colour="false" space_width="4" tab_width="8" cursor_width="2" distance="6" offset_height="0">
<Code range="33 126"/>
<Code range="1025 1105"/>
<Code range="8470"/>
<Code hide="128"/>
<Code hide="1026 1039"/>
<Code hide="1104"/>
</Font>
<Font name="fat" default_height="60" source="fat.ttf" size="60" resolution="50" antialias_colour="false" space_width="4" tab_width="8" cursor_width="2" distance="5" offset_height="0">
<Code range="33 126"/>
<Code range="1025 1105"/>
<Code range="8470"/>
<Code hide="128"/>
<Code hide="1026 1039"/>
<Code hide="1104"/>
</Font>
</MyGUI>
but in the layout editor the only fonts I can choose from are still Default, DejaVuSans.17, DejaVuSans.14 and ManualFont.
My first thought was that I was not changing the right XML file but I can change the ttf file of the Default font and see the changes in the layout editor.