I have a general question about the custom fonts, in the first SDK releases the custom fonts are declared in the folder resources in the resources.xml file like this:
<resources>
<string id="AppName">Crafty</string>
<bitmaps>
<bitmap id="LauncherIcon" filename="images/launcher_icon.png" />
<bitmap id="fondo" filename="images/blackbkg.png" />
</bitmaps>
<fonts>
<font id="id_font_craft" filename="fonts/Onlynumjmx.fnt" />
</fonts>
</resources>
Later on I called the font in the main code like this:
font = Ui.loadResource(Rez.Fonts.id_font_craft);
Now when I create a new project in SDK 1.2.5 with settings the resources.xml file is no longer created.
Question: Where should I put the
font id
now? In the same resources.xml file by creating a new one? The documentation is not clear about it and the examples included in the SDK are from the first SDK releases.
Can someone please let me know what is the right way to load the custom font? Is still using the resources.xml file?
Thank you!