display.setStatusBar(display.HiddenStatusBar) CustFont = display.newText( "SCORE", 320, 480, "04b\_11", 64 )
settings = { plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, android = { versionCode = "1", versionName = "1.0" }, androidPermissions= { --"android.permission.INTERNET", -- "android.permission.ACCESS\_NETWORK\_STATE", --"android.permission.READ\_PHONE\_STATE", }, orientation = { default = "portrait", supported = { "portrait", "portraitUpsideDown"}, }, iphone = { plist = { UIAppFonts = { "04B\_11\_.ttf", }, } } }
The custom font work fine in the corona simulator , but when I install to my android phone the custom font didn’t show .
rob
November 9, 2014, 2:52am
2
Well the first things I have to ask is do you have the font in the folder with your main.lua?
Rob
I had put the font in to the folder with main.lua .
rob
November 9, 2014, 4:10pm
4
Can you show me your display.newText() calls where you’re trying to use this font?
Can you verify the internal font name?
main.lua
display.setStatusBar(display.HiddenStatusBar) CustFont = display.newText( "SCORE", 320, 480, "04b\_11", 64 )
Can I have your email ? I can send the project to you .
First thing I’ve noticed is that in build.settings you have an upper case ‘B’ and in the code a lower case ‘b’. Devices are case-sensitive, the Corona Simulator is not.
rob
November 9, 2014, 2:52am
7
Well the first things I have to ask is do you have the font in the folder with your main.lua?
Rob
I had put the font in to the folder with main.lua .
rob
November 9, 2014, 4:10pm
9
Can you show me your display.newText() calls where you’re trying to use this font?
Can you verify the internal font name?
main.lua
display.setStatusBar(display.HiddenStatusBar) CustFont = display.newText( "SCORE", 320, 480, "04b\_11", 64 )
Can I have your email ? I can send the project to you .
First thing I’ve noticed is that in build.settings you have an upper case ‘B’ and in the code a lower case ‘b’. Devices are case-sensitive, the Corona Simulator is not.