When you see “Fonts provided by application”, select that. In the box that appears, start typing “Font” using an upper-case “F”. Right-click in the blank space below the existing entries and select “Add Row” from the popup menu. Select the complete file name, including the file extension and copy it. Press Return as if you are going to edit the name. Select the font file in the Project Navigator. Now the font file is in the project but there is still more work to do. In one of my tests, the file stayed in the Downloads folder even after checking “Copy files”, so I deleted the reference, manually moved the font file to my project folder and added it again. Check your app in the “Add to targets” section.At this stage there are 2 crucial settings: Once the project is open, drag the font file into the Project Navigator. Boot up Xcode and create a new SwiftUI project for iOS. Now to use the font, first in an iOS app. You can use either “.ttf” or “.otf” font files. I downloaded the font and un-zipped the file which gave me a single file called “Paintingwithchocolate-K5mo.ttf”. The one I chose was called “ Painting With Chocolate” by “Make mooze” Since I wanted to use this in a paid app, I checked the “Commercial-use” button to limit the search. I wanted a font that looked like it was hand-written, so I went to fontspace and searched the hand-writing category there.
#MORE FONTS IN PREVIEW MAC OS LICENSE#
The first thing is to find a suitable font and make sure that the license for that font matches your use. I probably should have published this on a different day, but it is not a joke…. That means that your interface is already familiar to users, you get dynamic font sizing and if Apple updates the fonts, you get the updates without doing anything.īut sometimes, you really need to use a different font in your apps, and as the process of getting a custom font to display in your app can be confusing and tedious, I thought I would go through the steps for both iOS and macOS apps.
As a rule, I prefer to use fonts that come pre-installed with the system.