Search code examples
iosiphonecordovaphonegap-buildfont-awesome-4

Using font-awesome with Phonegap on iOS


I am currently developing a Phonegap app and I cannot get any fontawesome icons to show up on the device.

They show up in testing on my desktop but once I go to the device, there are no icons. They don't show up as the squares either, just nothing at all. I am including the fontawesome.css file in my index.css file, is there something more I have to do for Phonegap and fontawesome?


Solution

  • You need to include the font file in your app bundle, as shown in this screen shot:

    enter image description here

    Drag the font file into the Project Navigator on the left, and then edit your Info.plist to give the name of the font file. You will then be able to refer to the font in your app's code.