Skip to content

Instantly share code, notes, and snippets.

@klaas
Last active January 31, 2020 11:20
Show Gist options
  • Save klaas/750f489e2390389ab812 to your computer and use it in GitHub Desktop.
Save klaas/750f489e2390389ab812 to your computer and use it in GitHub Desktop.

Generated within the iPhone Simulator (iOS Version 8.4 (12H141))

XS S M L XL XXL XXXL Accessibility M AccessibilityL AccessibilityXL AccessibilityXXL AccessibilityXXXL
UIFontTextStyleHeadline 14.0 15.0 16.0 17.0 19.0 21.0 23.0 23.0 23.0 23.0 23.0 23.0
UIFontTextStyleSubheadline 12.0 13.0 14.0 15.0 17.0 19.0 21.0 21.0 21.0 21.0 21.0 21.0
UIFontTextStyleBody 14.0 15.0 16.0 17.0 19.0 21.0 23.0 28.0 33.0 40.0 47.0 53.0
UIFontTextStyleFootnote 12.0 12.0 12.0 13.0 15.0 17.0 19.0 19.0 19.0 19.0 19.0 19.0
UIFontTextStyleCaption1 11.0 11.0 11.0 12.0 14.0 16.0 18.0 18.0 18.0 18.0 18.0 18.0
UIFontTextStyleCaption2 11.0 11.0 11.0 11.0 13.0 15.0 17.0 17.0 17.0 17.0 17.0 17.0

generated by multiple execution of:

println("\(UIApplication.sharedApplication().preferredContentSizeCategory)")

println("\(UIFont.preferredFontForTextStyle(UIFontTextStyleHeadline).pointSize)")
println("\(UIFont.preferredFontForTextStyle(UIFontTextStyleSubheadline).pointSize)")
println("\(UIFont.preferredFontForTextStyle(UIFontTextStyleBody).pointSize)")
println("\(UIFont.preferredFontForTextStyle(UIFontTextStyleFootnote).pointSize)")
println("\(UIFont.preferredFontForTextStyle(UIFontTextStyleCaption1).pointSize)")
println("\(UIFont.preferredFontForTextStyle(UIFontTextStyleCaption2).pointSize)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment