tags:

views:

101

answers:

3
+1  Q: 

iPhone system font

What is the name of the default system font on the iPhone? I would like to retrieve this for customizing a UIView.

+2  A: 

afaik iPhone uses "Helvetica" by default

Vladimir
+1  A: 

To the delight of font purists everywhere, the iPhone system interface uses Helvetica or a variant thereof.

The original iPhone, iPhone 3G and iPhone 3GS system interface uses Helvetica. As first noted by the always excellent DaringFireball, the iPhone 4 uses a subtly revised font called "Helvetica Neue." DaringFireball also notes that this change is related to the iPhone 4 display rather than the iOS 4 operating system and older iPhone models running iOS 4 still use Helvetica as the system font.

iPod models released prior to the iPhone use either Chicago, Espy Sans, or Myriad and use Helvetica after the release of the iPhone.

From http://www.everyipod.com/iphone-faq/iphone-who-designed-iphone-font-used-iphone-ringtones.html

Gary Willoughby
A: 

If you're doing programatic customisation, don't hard code the system font. Use UIFont systemFontOfSize:, UIFont boldSystemFontOfSize: and UIFont italicSystemFontOfSize (Apple documentation).

Adam Wright
I'm not going to change the system font, that's a bad idea. But I want it for some html in UIWebView.
SpecialK
This doesn't change the system font - it just gives you `UIFont` instances of the system font using the given sizes, and will always return the system fonts regardless of future iOS updates.
Adam Wright
The font I'm seeing in my UIWebView doesn't looking like Helvetica to me. I might be wrong but setting the font for my view takes away my doubt.
SpecialK