Maybe I’m looking at the wrong place, however how do I set an UILabel’s font and AND its weight?
Looking at the documentation, there seems to be only methods to create an UIFont with a given font name and size, like
[UIFont fontWithName:@"Helvetica" size:22])
OR create a bold font, with
[UIFont boldSystemFontOfSize:22]
How can I use these both together?
The documentation for fontWithName:size: states, “…name incorporates both the font family and the specific style information for the font.”
So you probably want:
fontNamesForFamilyName: is handy for getting a list of available fonts for a given family.
For example:
…which outputs: