Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • 14
    Here's a step by step tutorial for iOS4: blog.beefyapps.com/2010/06/custom-fonts-in-ios-4 Commented Sep 20, 2010 at 13:34
  • 15
    This tutorial is very good. shang-liang.com/blog/custom-fonts-in-ios4 Importantly, the NSString argument to [UIFont fontWithName:...] is the OS name for the font rather than the file name. Commented Jan 28, 2011 at 18:14
  • 153
    Before anyone else spends 3 hours installing fontforge in order to find the actual postscript name of the font required by iOS. I'll point out that you can simply press Cmd+I on the font in font book to find this information. Commented Mar 20, 2012 at 16:51
  • 42
    After struggling to get the right font name, I just listed out the installed fonts and found it. Very helpful. Here's the code: for ( NSString *familyName in [UIFont familyNames] ) { NSLog(@"Family %@", familyName); NSLog(@"Names = %@", [UIFont fontNamesForFamilyName:familyName]); } Commented Mar 29, 2012 at 20:05
  • 26
    If your code is not working, make sure you found font file appear in "Build Phases" -> "Copy Bundle Resouces" Commented Dec 20, 2012 at 9:55