Type Method

systemFontOfSize:

Returns the font object used for standard interface items in the specified size.

Declaration

+ (UIFont *)systemFontOfSize:(CGFloat)fontSize;

Parameters

fontSize

The size (in points) to which the font is scaled. This value must be greater than 0.0.

Return Value

A font object of the specified size.

Discussion

Instead of using this method to get a font, it’s often more appropriate to use preferredFontForTextStyle: because that method respects the user’s selected content size category.

See Also

Creating System Fonts

+ systemFontOfSize:weight:

Returns the font object used for standard interface items in the specified size and weight.

+ boldSystemFontOfSize:

Returns the font object used for standard interface items that are rendered in boldface type in the specified size.

+ italicSystemFontOfSize:

Returns the font object used for standard interface items that are rendered in italic type in the specified size.

+ monospacedDigitSystemFontOfSize:weight:

Returns the font object used for standard interface items that require fixed distances between digits.