iPhone OS Fonts

Today I was in need of a list of fonts that are installed on the iPhone. As far as I can tell, Apple's documentation does not provide a list of the usable fonts but there are two properties in the UIFont class that can be used to get them. So, I made a very simple script to print out the list of fonts. I was about to email myself the output which is my way of saving information for later (can't beat free, essentially unlimited storage) when I figured I may as well post it here since I was unable to find this list on the web to begin with.

The code

This code will print out a list of the usable fonts using [UIFont familyNames] and [UIFont fontNamesForFamilyName].

NSArray *families = [[NSArray alloc] initWithArray:[UIFont familyNames]];
 
for (int i = 0; i < [families count]; i++) 
{
	NSLog(@"Family: %@ \nFonts:", [families objectAtIndex:i]);
 
	NSArray *names = [[NSArray alloc] initWithArray:[UIFont fontNamesForFamilyName:[families objectAtIndex:i]]];
 
	for (int j = 0; j < [names count]; j++) 
		NSLog(@"\t %@", [names objectAtIndex:j]);
 
	[names release];
 
	NSLog(@"\n");
}
 
[families release];

The output

I assume this list is liable to change from version to version since Apple does not have a static list of fonts in the documentation. This is the output using iPhone SDK version 2.2.1:

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