---
title: kCTFontTraitsAttribute
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kctfonttraitsattribute
---

# kCTFontTraitsAttribute

The dictionary of font traits for stylistic information.

## Declaration

```swift
let kCTFontTraitsAttribute: CFString
```

## Discussion

Discussion See Accessing Font Traits for the list of font traits. The value associated with this key is a CFDictionary object.

## See Also

### Related Documentation

- [CTFontDescriptor](coretext/ctfontdescriptor.md)

### Font Attribute Keys

- [kCTFontURLAttribute](coretext/kctfonturlattribute.md)
- [kCTFontNameAttribute](coretext/kctfontnameattribute.md)
- [kCTFontDisplayNameAttribute](coretext/kctfontdisplaynameattribute.md)
- [kCTFontFamilyNameAttribute](coretext/kctfontfamilynameattribute.md)
- [kCTFontStyleNameAttribute](coretext/kctfontstylenameattribute.md)
- [kCTFontVariationAttribute](coretext/kctfontvariationattribute.md)
- [kCTFontSizeAttribute](coretext/kctfontsizeattribute.md)
- [kCTFontMatrixAttribute](coretext/kctfontmatrixattribute.md)
- [kCTFontCascadeListAttribute](coretext/kctfontcascadelistattribute.md)
- [kCTFontCharacterSetAttribute](coretext/kctfontcharactersetattribute.md)
- [kCTFontLanguagesAttribute](coretext/kctfontlanguagesattribute.md)
- [kCTFontBaselineAdjustAttribute](coretext/kctfontbaselineadjustattribute.md)
- [kCTFontMacintoshEncodingsAttribute](coretext/kctfontmacintoshencodingsattribute.md)
- [kCTFontFeaturesAttribute](coretext/kctfontfeaturesattribute.md)
- [kCTFontFeatureSettingsAttribute](coretext/kctfontfeaturesettingsattribute.md)
