Custom Font not working in iOS build but works on OSX - Will pay $$$ to fix this

Hi everyone,

I’m doing great things with Corona, almost ready to publish yet another build.

One thing though is driving me crazy though…:

I have made a custom icon font which I have installed on OSX, and I have included it in the build.settings file according to all the guidelines set in articles on the web.

The fonts look great in the simulator, but when I build the app, the fonts display in the default font of Corona (normal letters in stead of icons).

I have tried my custom font, the Helvetica font, the Arial font etc, but the font won’t change in my build.

This is what my build.settings file looks like:

plist =

{

  UIAppFonts =

           {

               “angelina.ttf”

           },

       },

},

I have also run all the font listing scripts I could find that give me the display name of the font (angelina) to make sure I did not do something wrong.

But apparently I have…

I am using build 2014.2393.

Please help me out!!!

My fellow forum member who can help me fix this will get a $25 reward in a gift certificate of choice! :wink:

thanks,

D

Hi @info8755,

Did you put the font in the directory where your main.lua resides?

burhan

Good Luck!

Hi Burhan,

yes it is present…

Ok…

How about your build.settings?

I assume you have something like this instead of the one above?

settings =

       {
       iphone = {
                plist = {
                          UIAppFonts =
                             {
                               “angelina.ttf”,
                             },
                           }
                      }
      }

You may also check for case-sensitivity of the font used.

Good Luck!

burhan

thanks, 
 
this is what I have:
 
iphone =
{
plist =
{
CFBundleDisplayName = “xxx”,
CFBundleShortVersionString = “1.1”,
UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
UIAppFonts =
{
“angelina.ttf”
},
},
},
},

it is driving me crazy, I see it in my simulator but not on my iphone grrrr.

thanks for your help though.

Do you maybe have a working file that uses a custom font?

arggggg

I found it,

closed my brackets to late in the build.settings!!!

thanks!!!

Hi @info8755,

Did you put the font in the directory where your main.lua resides?

burhan

Good Luck!

Hi Burhan,

yes it is present…

Ok…

How about your build.settings?

I assume you have something like this instead of the one above?

settings =

       {
       iphone = {
                plist = {
                          UIAppFonts =
                             {
                               “angelina.ttf”,
                             },
                           }
                      }
      }

You may also check for case-sensitivity of the font used.

Good Luck!

burhan

thanks, 
 
this is what I have:
 
iphone =
{
plist =
{
CFBundleDisplayName = “xxx”,
CFBundleShortVersionString = “1.1”,
UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-60.png”,
“Icon-60@2x.png”,
“Icon-72.png”,
“Icon-72@2x.png”,
“Icon-76.png”,
“Icon-76@2x.png”,
UIAppFonts =
{
“angelina.ttf”
},
},
},
},

it is driving me crazy, I see it in my simulator but not on my iphone grrrr.

thanks for your help though.

Do you maybe have a working file that uses a custom font?

arggggg

I found it,

closed my brackets to late in the build.settings!!!

thanks!!!