I downloaded a font(“Grobold”) from Dafont.com. It works in the simulator but when I transfer to device it doesn’t show up. Any ideas why? Thanks you.
Take a look at this FAQ and see if it helps: http://www.coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/.
- Andrew
Nope I inserted in build.settings and no work. Is this correct?
plist=
{
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = false,
UIAppFonts = { “Grobold” },
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small-50.png”,
“Icon-small-50@2x.png”,
},
Try putting the ttf or otf font file extension in, as shown in the FAQ, like this: UIAppFonts = { “Grobold.ttf” }
- Andrew
Also tried UIAppFonts = { “Grobold.ttf” },
UIAppFonts = { “Grobold.otf” },
neither worked.
How are you trying to display the font? Can you give an example of one of your display.newText() calls?
Also, what’s the font name (not the file name, but the name of the font itself)?
Last, have you included the font file within your resource folder (the same folder as main.lua)?
- Andrew
Take a look at this FAQ and see if it helps: http://www.coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/.
- Andrew
Nope I inserted in build.settings and no work. Is this correct?
plist=
{
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = false,
UIAppFonts = { “Grobold” },
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
“Icon-Small-50.png”,
“Icon-small-50@2x.png”,
},
Try putting the ttf or otf font file extension in, as shown in the FAQ, like this: UIAppFonts = { “Grobold.ttf” }
- Andrew
Also tried UIAppFonts = { “Grobold.ttf” },
UIAppFonts = { “Grobold.otf” },
neither worked.
How are you trying to display the font? Can you give an example of one of your display.newText() calls?
Also, what’s the font name (not the file name, but the name of the font itself)?
Last, have you included the font file within your resource folder (the same folder as main.lua)?
- Andrew