Global Variable

kCTFontWeightTrait

Declaration

let kCTFontWeightTrait: CFString

Discussion

Key to access the normalized weight trait from the font traits dictionary. The value returned is a CFNumber representing a float value between -1.0 and 1.0 for normalized weight. The value of 0.0 corresponds to the regular or medium font weight.