Oct
05

What fonts are available in iOS?

If you are like me, you are getting tired of using System Font and System Font Bold in your iOS apps. The other day I saw the familyNames field on the UIFont class. It returns an NSArray so I decided to dump the contents to the terminal. Below is what came out. In addition to familyNames you can call fontNamesForFamilyName to get a listing of names available for a specific font family. All you need to do is put the name of choice in the fontWithName:size method. I was really happy to see Helvetica Neue in that list.

myLabel [UILabel new];
myLabel.frame CGRectMake(0,0300100);
myLabel.font [UIFont fontWithName:@"Baskerville" size:12]


Happy coding!

  • Academy Engraved LET
  • American Typewriter
  • Apple Color Emoji
  • Apple SD Gothic Neo
  • Arial
  • Arial Hebrew
  • Arial Rounded MT Bold
  • Avenir
  • Avenir Next
  • Avenir Next Condensed
  • Bangla Sangam MN
  • Bodoni 72
  • Baskerville
  • Bodoni 72 Smallcaps
  • Bodoni 72 Oldstyle
  • Bodoni Ornaments
  • Bradley Hand
  • Chalkboard SE
  • Chalkduster
  • Cochin
  • Copperplate
  • Courier
  • Courier New
  • Devanagari Sangam MN
  • Didot
  • Euphemia UCAS
  • Futura
  • Geeza Pro
  • Georgia
  • Gill Sans
  • Gujarati Sangam MN
  • Gurmukhi MN
  • Heiti SC
  • Heiti TC
  • Helvetica
  • Helvetica Neue
  • Hiragino Kaku Gothic ProN
  • Hiragino Mincho ProN
  • Hoefler Text
  • Kailasa
  • Kannada Sangam MN
  • Malayalam Sangam MN
  • Marion
  • Marker Felt
  • Noteworthy
  • Optima
  • Oriya Sangam MN
  • Palatino
  • Papyrus
  • Party LET
  • Trebuchet MS
  • Sinhala Sangam MN
  • Snell Roundhand
  • Symbol
  • Tamil Sangam MN
  • Telugu Sangam MN
  • Thonburi
  • Times New Roman
  • Verdana
  • Zapfino
  • Zapf Dingbats

 

Comments

There are no comments for this entry yet.

Enter a comment - moderated

Add Comment