Fonts look different on Sim/iOS vs. Android

Found a (supposed) monospace font to use for a running timer label. Works great on iOS and the Simulator, but on Android, the font doesn’t appear monospace as values with 1’s in them are narrower, making the label “jump” as the timer runs.

Anyone else seen this? Finding good monospace fonts has been a royal pain. [import]uid: 58455 topic_id: 26968 reply_id: 326968[/import]

Is the font you are seeing on Android “Droid Sans” (you can google it)? If so, that’s the default system font and it indicates that Android was unable to find your font file.

On android you don’t need to add anything to your build.settings, just put the font in the same folder and main.lua and you’re good to go… with caveats.
The font file name needs to match the internal font name.
The font file needs to be a .ttf file (True Type Font). It won’t work with .otf or other format fonts.
The font file can’t be corrupted.
The font names are case sensitive so “Couier” and courier.ttf don’t match.

See if one of those are biting you on Android. [import]uid: 19626 topic_id: 26968 reply_id: 109486[/import]

Pretty sure it’s using the font, unless mine is nearly identical to Droid Sans. The zeroes are the indicator, though…mine are more blocky than round. [import]uid: 58455 topic_id: 26968 reply_id: 109491[/import]

Well this sucks. Looks like the font search is not over.

[import]uid: 58455 topic_id: 26968 reply_id: 118189[/import]