Hello guys
I m trying to load a font I coded the Build.setting file in this way
settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, --[[-- Android permissions androidPermissions = { "android.permission.INTERNET", },]]-- iphone = { plist = { UIAppFonts = { "CooperBlackStd-Italic.otf" }, }, } }
Then I Coded the main.lua in this way
local sfondo = display.newImage("sfondo.png") sfondo:setReferencePoint(display.BottomLeftReferencePoint) sfondo.x =-4 sfondo.y =273 local hai =display.newText("HAI" , 0 , 0 , "CooperBlackStd-Italic", 24) hai.x = 100 hai.y = 100
With the task to write "hai " using the font loaded; but whent i run it the simulator show me this message:
WARNING: THE FONT CooperBlackStd-Italic CAN’T BE LOADED USING DEFAULT FONT
Can someone suggest me how to solve it…
PS The name of the font is right for sure.
Thanks