0
votes

I have a project built in Corona SDK that contains a true-type font "BigBimboNC".

When the font is placed into the root directory, the simulator and compiled apps will display correctly. If I place the font into a more organised directory structure (/assets/fonts) then it seems to display on the simulator on WIndows correctly, on the Mac it displays a default font, and whem compiled and tested on an iPad, I see no text at all.

The build.settings contains the following section:

iphone =
{
    plist=
    {
        UIStatusBarHidden=true,
        UIApplicationExitsOnSuspend = false,
        UIAppFonts = 
                       {
                               "assets/fonts/BigBimboNC.ttf"
                       },
        CFBundleIconFiles = {
            "Icon.png" , 
            "[email protected]" , 
               "Icon-72.png" , 
           },
           UIPrerenderedIcon = true,
    },
},

I've seen problems when trying to reference assets with a leading / (fine on the simulator, but fails on the device). This problem is also true for sound files, however images seem fine.

Can anyone point me in the right direction please.

1

1 Answers

0
votes

The resource files for everything (e.g. images, sound files, fonts and lua files) should be in a flat directory.

At here they discussed about some pitfalls that anyone may encounter when using Corona SDK.

The only way is to restructure the whole folder.