Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 64

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
12/02/14 07:38 PM (9 years ago)

How to Add Custom Fonts to Your iOS App $0.00

I was looking to add some custom fonts to my app, and wanted them to be built in rather than loaded at run-time. Quickly found out that pricing for mobile fonts are expensive. However this write-up works great to use free font families from http://www.google.com/fonts/ (just need to include license text) Follow the steps in this article and you can now add other fonts not included in ios7 http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/#includefonts In my case the fontname I was looking for in step 5 definitely was nowhere close to the font filename. ===== Have fun
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
12/02/14 07:43 PM (9 years ago)
One more item. The code below referenced in the article works in BTv3 no problem, and does output all of the available fonts to NSLog debugger. (However the code my BT_Core in BT_device.m did not work (around row 160)) // ========== show all custom fonts available in the project ======== for (NSString* family in [UIFont familyNames]) { NSLog(@"%@", family); for (NSString* name in [UIFont fontNamesForFamilyName: family]) { NSLog(@" %@", name); } } //===========
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
12/02/14 09:10 PM (9 years ago)
This may still work... to be honest, I haven't tried in iOS8 yet. https://www.buzztouch.com/files/howtos/btcustomfonts.pdf Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
12/03/14 12:41 AM (9 years ago)
Thanks, Mustang and Smug!
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
12/03/14 05:45 AM (9 years ago)
Smug The PDF is even better. Figures there was a BT tutorial right here that I missed ;) Thanks
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.