You can use [UIFont fontWithName:@"Arial-BoldMT" size:17];
I checked the documentation but nothing came up. I am able to set the family name and size with [UIFont fontWithName:@"Arial" size:17]; but how do I make it bold?
3 replies
You need to pass in the name of the specific font within the family. Use the "fontNamesForFamilyName" method of UIFont to get a list of names.
The naming scheme is not consistent. Here are some examples of bold font names:
"Helvetica-Bold"
"TimesNewRomanPS-BoldMT"
"Arial-BoldMT"
"CourierNewPS-BoldMT"
"Georgia-Bold"
Message was edited by: Tom Peck
The naming scheme is not consistent. Here are some examples of bold font names:
"Helvetica-Bold"
"TimesNewRomanPS-BoldMT"
"Arial-BoldMT"
"CourierNewPS-BoldMT"
"Georgia-Bold"
Message was edited by: Tom Peck
If you want to use the system font, you can also use boldSystemFontOfSize.
How to set UIFont to bold?