Add a custom font to iOS app

I recently needed to add a custom font to my iOS app as the standard ones didn’t work for what I wanted.

I downloaded a .ttf file, (I used www.dafont.com) and copied it into my Xcode project.
The next step is to open your project’s Info.plist and add a new key “Fonts provided by application” and ensure its an array. In the first object of the array add the value “<fontname>.<fileextension>“. So where I used the font digitalism the value I entered was “digitalism.ttf

To then use this font on a label its just the same as any other font:

[myLabel setFont:[UIFont fontWithName:@"digitalism" size:20]];

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.