FontBlaster is probably one of the simplest things we'll cover in these bites.
Don't be fooled though, it is one of the most useful little utilities and has quickly made its way into my "standard set" of third-party I use in all my new projects.
Adding a custom font to an iOS app is normally just a little cumbersome:
😁 First drag the font file(s) into Xcode
😐 Open up your Info.plist
😒 Add a new key for "Fonts provided by application"
😲 Find the exact names of each font that iOS’s font system wants to hear, adding items in the .plist for each
😭 Watch as loading them all slows down your app’s initial launch
With FontBlaster, all you have to do is make sure your custom font files are added to your app's main bundle then call this method anywhere in your app:
FontBlaster.blast()
More info about FontBlaster can be found at git.io/fontblaster
Authors Note
Hey everyone, first off the response to little bites has been absolutely incredible. I'd like to thank every single one of you for reading, responding, retweeting, requesting, etc. as I get things off the ground here.
Second, I'd like to let everyone know that there will be no bites published next week as I'll be busy attending Apple's Worldwide Developer Conference learning what is sure to be tons of exciting new things that I’ll get to cover here in the coming months.
If you're going to be at the conference as well, reach out on Twitter, I'd love to meet and talk to as many of you all as I can! 👍
Bites will resume their regular schedule starting Monday June, 15th.
Cheers! 🍫
- Jake