It seems like the NUMBER_THAI_HOT font is completely wrong in the simulator? Is this the case for any other watches too? Because then it will be pretty darn hard to make watch faces using the build in fonts :/
It seems like the NUMBER_THAI_HOT font is completely wrong in the simulator? Is this the case for any other watches too? Because then it will be pretty darn hard to make watch faces using the build in fonts :/
I use this font (and others) in my data fields
- apps.garmin.com/.../54c12802-c11e-4d12-ad0c-1ccb6c0a69c8
- apps.garmin.com/.../280057f8-e5f2-4913-be15-5c7c43718b60
They actually work as expected in the simulator and I have not yet received any negative reports from users.
Maybe your problem is that you don't know the correct font height.
This is about 50 pixels for FONT_SYSTEM_NUMBER_THAI_HOT. Unfortunately I don't know a method to calculate this in the code.
Thats very strange because the font looks much smaller in the simulator then on the actual device… i can send screenshots if you want?
I haven't tried it yet, but I think it should be possible to add a screenshot here.
You could check the heights of the font with auxiliary lines:
var font1Descent = Graphics.getFontDescent(Graphics.FONT_SYSTEM_NUMBER_THAI_HOT);
var font1Ascent = Graphics.getFontAscent(Graphics.FONT_SYSTEM_NUMBER_THAI_HOT);
...
dc.setColor(Graphics.COLOR_RED, Graphics.COLOR_TRANSPARENT);
dc.drawLine(0, y, width, y );
One of my test app shows the fonts as well as the height of a font based on dc.getFontHeight(). The lines also show if there is white space above/below the characters.
Here's the screen for FONT_NUMBER_THAI_HOT and FONT_NUMBER_HOT.
The "SYSTEM" fonts are the same as the ones without "SYSTEM"