Use custom fonts for your iOS projects directly in Interface Builder, the WYSIWYG way

by Cédric Luthi “0xced


Since iOS 3.2, you can use custom fonts in your iOS apps by adding the UIAppFonts Info.plist key. Unfortunately, custom fonts are not available when editing your xib files in Interface Builder. MoarFonts makes your custom fonts available right within Interface Builder.

MoarFonts is compatible with both Xcode 4 and Xcode 5.

If you are using MoarFonts in a team, you must purchase one license per user, including your continuous integration server if applicable.


In your project, add a Run Script Build Phase with /bin/bash -e as shell and the following script:

mdfind -onlyin "${SRCROOT}" "kMDItemContentTypeTree == public.font" -0 | sort -z | xargs -0 /usr/local/bin/moarfonts install

This will make all fonts in your project directory available in Xcode. You will need to relaunch Xcode the first time you build your project.






If you are still having issues with MoarFonts, please contact me by e-mail rather than twitter. Doing support in 140 characters is too hard.