Font MyriadPro-Cond doesn't work in device

Hi all,
I meet a problem. When i use custom font MyriadPro-Cond (or MyriadPro family) it work fine on simulator.
But i real iphone, it doesn’t work. No text display

I try with Helvetica, i work fine in simulator and real device. But my project require use MyriadPro font

Can you help me solve this problem.

[lua] local defaultFont = “MyriadPro-Cond”
local comicDesTitle = display.newText(“Description:”, 20, 50,defaultFont,30)
comicDesTitle:setTextColor(186, 222, 246)[/lua] [import]uid: 167226 topic_id: 30515 reply_id: 330515[/import]

Did you specify the font in build.settings ?

iphone = { plist = { UIAppFonts = { "yourfont.ttf" }, }, },

[import]uid: 157863 topic_id: 30515 reply_id: 122255[/import]

Basically the device doesn’t have that font and it will fall back to native.systemFont, which is probably Helvetica.

You will need to include the font in the same folder as your main.lua, put it in the build.settings as the poster above pointed out.

Font names are tricky. You have to use the internal font name, which in your case is likely MyriadPro-Cond and name the font file to match (it’s case sensitive), so you will need:

MyriadPro-Cond.ttf

And if you’re using commercial fonts, you need to make sure you have the rights to use it. [import]uid: 19626 topic_id: 30515 reply_id: 122317[/import]

Did you specify the font in build.settings ?

iphone = { plist = { UIAppFonts = { "yourfont.ttf" }, }, },

[import]uid: 157863 topic_id: 30515 reply_id: 122255[/import]

Basically the device doesn’t have that font and it will fall back to native.systemFont, which is probably Helvetica.

You will need to include the font in the same folder as your main.lua, put it in the build.settings as the poster above pointed out.

Font names are tricky. You have to use the internal font name, which in your case is likely MyriadPro-Cond and name the font file to match (it’s case sensitive), so you will need:

MyriadPro-Cond.ttf

And if you’re using commercial fonts, you need to make sure you have the rights to use it. [import]uid: 19626 topic_id: 30515 reply_id: 122317[/import]