Problem With An Android Custom Font?

Hello! I have a problem with the “GoodDog Plain” font. Whatever I try, I can’t load the font.

I have the font inside the app’s directory (near all the other images, lua files, etc.), I wrote the correct name of the font, etc.

I posted a print-screen which shows everything.

font_zps5a9d1e83.png

Any idea how to solve this problem?

Thank you!

Not very helpful per se, but I have the same problem all the time, even on iOS. Maybe 1 out of every 5 fonts load, the rest just silently fail. I wish I could help but this is one of those things where literally the only troubleshooting process is:

  1. Find another font that you’re sure should work

  2. Test to see if it does

  3. Repeat until you find one that *does* work (to prove your process is correct)

  1. The rest of your fonts can safely be discarded because there’s no way I’ve heard of to make them work.

That being said, doesn’t Android require referencing the filename in config or something?

I’ve added the font name.ttf in the build.settings even if it is not necessary on Android. If the problem is the one you mentioned above I will have to search for another font that works and looks pretty inside the game.

Thanks!

Hi @CrunchyApps,

Did you read through the various “quirks” in this FAQ?

http://www.coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/

Not very helpful per se, but I have the same problem all the time, even on iOS. Maybe 1 out of every 5 fonts load, the rest just silently fail. I wish I could help but this is one of those things where literally the only troubleshooting process is:

  1. Find another font that you’re sure should work

  2. Test to see if it does

  3. Repeat until you find one that *does* work (to prove your process is correct)

  1. The rest of your fonts can safely be discarded because there’s no way I’ve heard of to make them work.

That being said, doesn’t Android require referencing the filename in config or something?

I’ve added the font name.ttf in the build.settings even if it is not necessary on Android. If the problem is the one you mentioned above I will have to search for another font that works and looks pretty inside the game.

Thanks!

Hi @CrunchyApps,

Did you read through the various “quirks” in this FAQ?

http://www.coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/