Broken Font Characters

Hi,

I’m currently using custom fonts on my android app. Problem is, while I can see every character properly in Corona Simulator, same sentence shows some “? like” characters when it’s opened in Android devices.

Custom font is opened successfully on device, you can see most of letters properly but some of them has weird outputs. Any idea why it happens?

I’ve implemented it with following official tutorial. Font file name and display name in code is same, also it’s in root folder.

It’s possible the .ttf file you’re using for the device could be different than the one you have installed on your computer and it’s unable to find the right glyphs. It’s possible that the computer your running the simulator on is less sensitive to errors in the font file that Android and iOS are.

Rob

After I posted to forum, I noticed that my text’s characters somehow changed in my base .lua file. They were converted to something font doesn’t have (but somehow they were still proper in simulator) and funny thing is I found that it was Sublime Text 3. Using upper/lower/title case converter in ST3 on a text somehow changed some of the characters.

If someone else experience it (which would be very rare I presume) it’s better to check base text if you use that case conversion.

Thank you Rob for a quick reply.

It’s possible the .ttf file you’re using for the device could be different than the one you have installed on your computer and it’s unable to find the right glyphs. It’s possible that the computer your running the simulator on is less sensitive to errors in the font file that Android and iOS are.

Rob

After I posted to forum, I noticed that my text’s characters somehow changed in my base .lua file. They were converted to something font doesn’t have (but somehow they were still proper in simulator) and funny thing is I found that it was Sublime Text 3. Using upper/lower/title case converter in ST3 on a text somehow changed some of the characters.

If someone else experience it (which would be very rare I presume) it’s better to check base text if you use that case conversion.

Thank you Rob for a quick reply.