Global Variable

UIFontWeightTrait

The normalized font weight.

Declaration

const UIFontDescriptorTraitKey UIFontWeightTrait;

Discussion

The value of this key is an NSNumber object. The valid value range is from -1.0 to 1.0. The value of 0.0 corresponds to the regular or medium font weight. You can also use a font weight constant to specify a particular weight; for a list of constants you can use, see Font Weights.

See Also

Font Traits

UIFontSlantTrait

The relative slant angle of the font.

UIFontWidthTrait

The inter-glyph spacing of the font.