I am trying to use a larger font size then the standard Graphics.FONT_LARGE. I downloaded a font from bmfont an made a new map under resources with fonts with an xml file with a link to the fnt file. like this:
<fonts>
<font id="customFont" filename="font.fnt" filter="0123456789:"/>
</fonts>
In my watchface.mc file i did this
var customfont = null;
function onLayout(dc as Dc) as Void {
customfont = Ui.loadResource(Rez.Fonts.customfont);
}
function onUpdate(dc as Dc) as Void {
view.drawText(dc.getWidth/2,22, customfont, timeString, Gfx.TEXT_JUSTIFY_CENTER);
}
And this is my error.
Error: Symbol Not Found Error Details: Could not find symbol 'customfont' Stack: - onLayout() at C:\Users\User\Documents\garminwatch\wachtface\source\wachtfaceView.mc:27 0x1000007a
anyone who knows what's wrong?