!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> » What Fonts are on my iPhone? -- Mobile Perspectives

What Fonts are on my iPhone?



By deans ~ August 13th, 2009. Filed under: Resources.

The iPhone / iPod touch have a reasonable list of available fonts.  Of course, the selection is limited when compared to a desktop OS, but you should be able to find something suitable for most purposes.  One issue that seems to be a challenge for some developers is the fact that you need the specific font names to use with calls like:



 [myLbl setFont:[UIFont fontWithName:@"Helvetica-BoldOblique" size:20]];

and

UIFont *font = [UIFont fontWithName:@"Zapfino" size:titleSz];


 
The complete list of font names can be easily generated with the following code snippet:



   NSArray *names = [UIFont familyNames];
   NSArray *fontFaces;
   NSLog(@"FONT NAMES");
   for (NSString *name in names)
   {
      NSLog(@"Font Family:  %@",name);
      fontFaces = [UIFont fontNamesForFamilyName:name];
      for (NSString *fname in fontFaces) 
      {
         NSLog(@"              %@",fname);
      }
   }
   

 
That’s pretty much all that there is to it.  I always worry about maintaining a static list — What if Apple adds new fonts in 3.x?  With that caveat, here’s what we get from an iPod touch, running the 2.2.1 version of the software (I removed all of the NSLog information):


  
FONT NAMES
  Font Family:  Courier
                Courier
                Courier-BoldOblique
                Courier-Oblique
                Courier-Bold
  Font Family:  AppleGothic
                AppleGothic
  Font Family:  Arial
                ArialMT
                Arial-BoldMT
                Arial-BoldItalicMT
                Arial-ItalicMT
  Font Family:  STHeiti TC
                STHeitiTC-Light
                STHeitiTC-Medium
  Font Family:  Hiragino Kaku Gothic ProN
                HiraKakuProN-W6
                HiraKakuProN-W3
  Font Family:  Courier New
                CourierNewPS-BoldMT
                CourierNewPS-ItalicMT
                CourierNewPS-BoldItalicMT
                CourierNewPSMT
  Font Family:  Zapfino
                Zapfino
  Font Family:  Arial Unicode MS
                ArialUnicodeMS
  Font Family:  STHeiti SC
                STHeitiSC-Medium
                STHeitiSC-Light
  Font Family:  American Typewriter
                AmericanTypewriter
                AmericanTypewriter-Bold
  Font Family:  Helvetica
                Helvetica-Oblique
                Helvetica-BoldOblique
                Helvetica
                Helvetica-Bold
  Font Family:  Marker Felt
                MarkerFelt-Thin
  Font Family:  Helvetica Neue
                HelveticaNeue
                HelveticaNeue-Bold
  Font Family:  DB LCD Temp
                DBLCDTempBlack
  Font Family:  Verdana
                Verdana-Bold
                Verdana-BoldItalic
                Verdana
                Verdana-Italic
  Font Family:  Times New Roman
                TimesNewRomanPSMT
                TimesNewRomanPS-BoldMT
                TimesNewRomanPS-BoldItalicMT
                TimesNewRomanPS-ItalicMT
  Font Family:  Georgia
                Georgia-Bold
                Georgia
                Georgia-BoldItalic
                Georgia-Italic
  Font Family:  STHeiti J
                STHeitiJ-Medium
                STHeitiJ-Light
  Font Family:  Arial Rounded MT Bold
                ArialRoundedMTBold
  Font Family:  Trebuchet MS
                TrebuchetMS-Italic
                TrebuchetMS
                Trebuchet-BoldItalic
                TrebuchetMS-Bold
  Font Family:  STHeiti K
                STHeitiK-Medium
                STHeitiK-Light
  

 

Happy Fonting!

 


Technorati Tags:  , , , ,

1 Response to What Fonts are on my iPhone?

  1. iPhone Apps

    I really enjoy your site. Thank you so much for providing this information- it’s really needed and extremely helpful for quite a few of us…