Invisible fonts on device

Hello,

I use the feature allowing to have one’s own fonts.
build.settings :

settings = { iphone = { plist = { UIApplicationExitsOnSuspend = true, UIAppFonts = { "cartoonist\_kooky.ttf", "EraserDust.ttf", "Change Tomorrow Today.ttf" } } } }

And, in lua file :

display.newText( k , x-20,y-35, "Cartoonist kooky", 70 )

It perfectly works on corona emulator, but as soon as I install the application on my device, all the texts using those fonts are invisible…
Is there anything else to do ? Is this a bug ?

Thanks,

Olivier.
[import]uid: 9079 topic_id: 3284 reply_id: 303284[/import]

Are these fonts inside the project folder so they get bundled in the app? [import]uid: 5712 topic_id: 3284 reply_id: 9871[/import]

Yes, they are. All the ttf files are at the root directory of the application. [import]uid: 9079 topic_id: 3284 reply_id: 9873[/import]

have you tried this?

display.newText( k , x-20,y-35, "cartoonist\_kooky", 70 )  

lowercase c and underscore as in the build.settings file [import]uid: 6459 topic_id: 3284 reply_id: 9912[/import]

I’ve tried : “CartonnistKooky”, and it works ! Thanks for the advice.

What is surprising here is that the ttf file is named cartoonist_kooky.ttf, and that the font is named “Cartoonist Kooky”. None of them works… Or may be the font name, with spaces removed ?

Nevertheless it works !

Moreover, if it may help anybody : I’ve tried to use a font installed into the root of the project, into a WebPopup. It works ! It means any font can be shown into a webpage opened into a WebPopup.
Great ! [import]uid: 9079 topic_id: 3284 reply_id: 10004[/import]

Olivier, i’ m glad you found a solution

how is the font called in the Font Book?
is it CartonnistKooky? i do not have this font, so that i can see it myself
[import]uid: 6459 topic_id: 3284 reply_id: 10021[/import]