Clicky

iOS Dev Nugget 280 Using Custom Fonts Without Updating Info.plist Manually

.

Need to run a code review on your codebase? Hire me

If you use custom fonts in your apps, it can be a hassle to track and maintain the UIAppFonts key in your Info.plist file, especially as you need to figure out each font name yourself. Here's an excellent timesaver: FontBlaster is a library that programmatically loads custom fonts for you. You just need to do this:

  1. Include the font files in your project like you'd normally do
  2. Include FontBlaster. (Supports Carthage and CocoaPods)
  3. Run FontBlaster.blast()

You no longer need the UIAppFonts key in Info.plist.

I learnt about FontBlaster from Michael Tsai.

Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues