I would like to know the name of the default system font on the iPhone. It used to be "HelveticaNeue" I guess , but now?
Asked
Active
Viewed 2.6k times
2 Answers
34
iOS 9 uses SanFranciscoUIDisplay and SanFranciscoText as their default font.
SanFranciscoUIDisplay is used for titles and larger font wheres SanFranciscoText is used for paragraph text and smaller font.
They are the System Font in Xcode or you can download them here (but you need a developer account):
You can use the default font like this:
Swift 2:
UIFont.systemFontOfSize(15)
Swift 3 and Swift 4:
UIFont.systemFont(ofSize: 15)

kuzdu
- 7,124
- 1
- 51
- 69

Joe Benton
- 3,703
- 1
- 21
- 17
-
2what string should i put in this code? UIFont(name: "String", size: 15.0). Thanks – 0ndre_ Apr 07 '16 at 07:56
-
Because it is the system font, you can just use UIFont.systemFontOfSize(15) – Joe Benton Apr 07 '16 at 07:58
-
Oh, I see. OMG :D Thanks – 0ndre_ Apr 07 '16 at 07:59
-
1what is the equivalent of this font in HTML ? – Umit Kaya Jan 19 '17 at 18:35