Custom font issue when deployed to an iPad

We're currently experiencing a problem with using custom fonts in our app.

Specifically we're trying to make use of FontAwesome.ttf for our icons. We have added the font to the resources folder and have set the build action for the file to BundleResource ** and **Copy always

Since we're using Visual Studio the entry to register the fonts on Info.plist is as follows:

<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
</array>

Anyway this all works fine when we run the ios ipad simlulator, no problem at all. However now that we have deployed the app to an actual ipad the app crashes at the point we begin using FontAwesome....Strange.

Has anyone experienced anything similar? Are we not registering the font properly?

Cheers, Will

Posts

  • WillCarsonWillCarson USMember

    Fixed.

    For some reason putting the FontAwesome.ttf file in the root of the app (ie not in resources) and setting the build action to Content fixed it. Boom.

Sign In or Register to comment.