Type Alias

UIFontWeight

Standard font weights.

Declaration

typedef CGFloat UIFontWeight;

Discussion

The following constants represent font weights that can be used as values for UIFontWeightTrait. You can also use these constants to specify the weight parameter in systemFontOfSize:weight:. Most fonts don't include variants in all these font weights.

Topics

Using System-Defined Font Weights

UIFontWeightUltraLight

The ultra-light font weight.

UIFontWeightThin

The thin font weight.

UIFontWeightLight

The light font weight.

UIFontWeightRegular

The regular font weight.

UIFontWeightMedium

The medium font weight.

UIFontWeightSemibold

The semibold font weight.

UIFontWeightBold

The bold font weight

UIFontWeightHeavy

The heavy font weight.

UIFontWeightBlack

The black font weight.

Balancing the Appearance of Symbols and Text

UIImageSymbolWeightForFontWeight

The corresponding symbol weight for the provided font weight.

See Also

Creating System Fonts

+ systemFontOfSize:

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

+ 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.

+ monospacedSystemFontOfSize:weight:

Returns the fixed-width font used for standard interface text in the specified size.

+ monospacedDigitSystemFontOfSize:weight:

Returns the standard system font with all digits in constant width.