What is iOS 9.3 system font name?
Asked Answered
O

2

13

I would like to know the name of the default system font on the iPhone. It used to be "HelveticaNeue" I guess , but now?

Oldest answered 7/4, 2016 at 7:43 Comment(0)
P
35

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):

developer.apple.com/fonts/

You can use the default font like this:

Swift 2:

UIFont.systemFontOfSize(15)

Swift 3 and Swift 4:

UIFont.systemFont(ofSize: 15)
Praenomen answered 7/4, 2016 at 7:47 Comment(4)
what string should i put in this code? UIFont(name: "String", size: 15.0). ThanksOldest
Because it is the system font, you can just use UIFont.systemFontOfSize(15)Praenomen
Oh, I see. OMG :D ThanksOldest
what is the equivalent of this font in HTML ?Outgrowth
P
3

Swift 3 & 4

UIFont.systemFont(ofSize: 15)
Pancho answered 17/3, 2017 at 10:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.