Skip to content

Instantly share code, notes, and snippets.

@cumanzor
Last active June 13, 2019 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cumanzor/6a19db689544695d0b12f348b82f4e9f to your computer and use it in GitHub Desktop.
Save cumanzor/6a19db689544695d0b12f348b82f4e9f to your computer and use it in GitHub Desktop.
get ios font family valid names #ios #lldb #debug
In the lldb cli:
po [UIFont fontNamesForFamilyName:@"Avenir"]
<__NSArrayM 0x608000247ec0>(
Avenir-Oblique,
Avenir-HeavyOblique,
Avenir-Heavy,
Avenir-BlackOblique,
Avenir-BookOblique,
Avenir-Roman,
Avenir-Medium,
Avenir-Black,
Avenir-Light,
Avenir-MediumOblique,
Avenir-Book,
Avenir-LightOblique
)
Swift:
po UIFont.fontNames(forFamilyName: "Avenir")
All fonts:
po UIFont.familyNames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment