Include Font with App

Hi all,

I have a quick question: Is there a particular way that we should include a font with a MacOS Xojo app, without installing it system-wide? How does one include fonts with an app?

Any guidance would be much appreciated. :slight_smile:

Byron

First, Use a copy files step to copy the font to a sub folder for the resources directory. Next you’ll need to add an entry to the plist file to tell it where to find the font…

So if the fonts are copied to Resources/Fonts/test.ttf you’ll need a plist entry like this

<key>ATSApplicationFontsPath</key>
<string>Fonts/</string>
1 Like

Thank you very much! Yay, this works… Much appreciated! :smiley:

Byron

While Greg has already explained the macOS way - here is an example project showing how to do this for Windows and Linux, too:
GitHub - jo-tools/customappfonts: Xojo example project: Custom App Fonts

3 Likes