Type Property

weight

The normalized font weight.

Declaration

static let weight: UIFontDescriptor.TraitKey

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