I am trying to add a custom font to my PhoneGap application and I tried two methods I found on the internet and they don't work using PhoneGap 3 and Xcode 5.
Using font-face method using CSS:
@font-face { font-family: 'Droid Arabic Kufi'; src: url('fonts/DroidKufi-Regular.ttf'); } body { font-family: 'Droid Arabic Kufi'; }
Using Xcode info.plist file method:
First I added DroidKufi-Regular.ttf in the project resources folder.
Then added a new row in the info.plist file called
Fonts provided by application
with item calledDroidKufi-Regular.ttf
. and still doesn't work.So, in viewDidLoad method I added this line of code
[UIFont fontWithName:@"Droid Arabic Kufi" size:10.0];
but still not working.