Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
for style in styles {
let font = UIFont.preferredFont(forTextStyle: style)
print("\(style): \(font.fontName) @ \(font.pointSize)")
}
Style Font Size
.largeTitle SFUI-Regular 34.0
.title1 SFUI-Regular 28.0
.title2 SFUI-Regular 22.0
.title3 SFUI-Regular 20.0
.headline SFUI-Semibold 17.0
.callout SFUI-Regular 16.0
.subheadline SFUI-Regular 15.0
.body SFUI-Regular 17.0
.footnote SFUI-Regular 13.0
.caption1 SFUI-Regular 12.0
.caption2 SFUI-Regular 11.0
@bagrawal
Copy link

bagrawal commented Apr 19, 2016

Thanks 👍
This is useful documentation :)

@NikolaKirev
Copy link

NikolaKirev commented Aug 24, 2017

Thank you!
I am guessing these results are from running the code with the default user font preferences?

@zacwest
Copy link
Author

zacwest commented Aug 24, 2017

@NikolaKirev Correct, this is just at the default dynamic type size. You can see a graph of what happens to the type sizes in this graph.

@venkatchm
Copy link

venkatchm commented Jun 28, 2018

what are the font sizes for iPad?

@alexliuxe
Copy link

alexliuxe commented Aug 16, 2018

I think when considering accessibilities this won't be the correct size anymore.

@pawelkijowskizimperium
Copy link

pawelkijowskizimperium commented Jan 11, 2019

Useful... Thanks

@liuzhida33
Copy link

liuzhida33 commented Mar 6, 2019

Usefu! Thanks!

@gesabo
Copy link

gesabo commented May 5, 2021

is WatchOS different? On WatchOS .footnote seems to be smaller than .caption and .caption2 🤔 https://developer.apple.com/design/human-interface-guidelines/watchos/visual/typography/

@drewolbrich
Copy link

drewolbrich commented May 8, 2021

Thank you for posting this.

@OrkhanAlikhanov
Copy link

OrkhanAlikhanov commented May 31, 2021

@gchatz22
Copy link

gchatz22 commented Aug 5, 2021

This is very useful!

@PaulDoesDev
Copy link

PaulDoesDev commented Nov 21, 2022

In case anyone else finds a side by side comparison with macOS useful:

Style iOS macOS
.largeTitle Regular 34.0 Regular 26.0
.title1 Regular 28.0 Regular 22.0
.title2 Regular 22.0 Regular 17.0
.title3 Regular 20.0 Regular 15.0
.callout Regular 16.0 Regular 12.0
.headline SemiBold 17.0 Bold 13.0
.subheadline Regular 15.0 Regular 11.0
.body Regular 17.0 Regular 13.0
.footnote Regular 13.0 Regular 10.0
.caption1 Regular 12.0 Regular 10.0
.caption2 Regular 11.0 Medium 10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment