warning: Could not load custom font in windows

Hi,

I’m getting the following warning while opening a project in Simulator from Window XP. I have installed the font and placed the otf file in project root.
Warning: could not load font Using default font.

Could anyone please help me?

David [import]uid: 115002 topic_id: 20812 reply_id: 320812[/import]

Have you tried a ttf font ?

I’m not sure if otf fonts are supported [import]uid: 84637 topic_id: 20812 reply_id: 81941[/import]

What font are u using. Also, hope you know that the font file name is not the same a font name. You will have to use the correct font name for it to be available in ur app. [import]uid: 84539 topic_id: 20812 reply_id: 81952[/import]

I thought that it was problem with my SDK installation. I’ll check with ttf font.

Thanks for your reply

David [import]uid: 115002 topic_id: 20812 reply_id: 81953[/import]

I used the font name that was displayed in the MS font dialog. I guess that’s correct :slight_smile: [import]uid: 115002 topic_id: 20812 reply_id: 81955[/import]

Use this code to get the exact name of the available fonts

[code]
local sysFonts = native.getFontNames()
for k,v in pairs(sysFonts) do print(v) end

[/code] [import]uid: 84539 topic_id: 20812 reply_id: 81957[/import]