---
title: kCTFontMatrixAttribute
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kctfontmatrixattribute
---

# kCTFontMatrixAttribute

The font transformation matrix when creating a font.

## Declaration

```swift
let kCTFontMatrixAttribute: CFString
```

## Discussion

Discussion If unspecified it defaults to the unit matrix. The value for this key is a CFData object containing a CGAffineTransform object.

## See Also

### Font Attribute Keys

- [kCTFontURLAttribute](coretext/kctfonturlattribute.md)
- [kCTFontNameAttribute](coretext/kctfontnameattribute.md)
- [kCTFontDisplayNameAttribute](coretext/kctfontdisplaynameattribute.md)
- [kCTFontFamilyNameAttribute](coretext/kctfontfamilynameattribute.md)
- [kCTFontStyleNameAttribute](coretext/kctfontstylenameattribute.md)
- [kCTFontTraitsAttribute](coretext/kctfonttraitsattribute.md)
- [kCTFontVariationAttribute](coretext/kctfontvariationattribute.md)
- [kCTFontSizeAttribute](coretext/kctfontsizeattribute.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)
