The UIFont(Name) category is used to get font by string name.
The UIFont(Name) category belongs to the UIFont class.
fontNameWithFamily:bold:italic:. Returns font name.
+ (NSString *) fontNameWithFamily: (NSString *) family bold: (BOOL) isBold italic: (BOOL) isItalic
family. Font family.
isBold. Indicates whether bold font style is used.
isItalic. Indicates whether italic font style is used.
Available Values of the isBold parameter:
YES. Bold font style is used.
NO. Bold font style is not used.
Available Values of the isItalic parameter:
YES. Italic font style is used.
NO. Italic font style is not used.
The example of use is given in the Working with Font Size section.
fontWithFamily:bold:italic:withSize:. Returns font.
+ (UIFont *) fontWithFamily: (NSString *) family bold: (BOOL) isBold italic: (BOOL) isItalic withSize: (CGFloat) size
size. Font size.
See also:
Categories. The Mobile Application Component