<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFontDescriptor/AttributeName/matrix",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIFontDescriptorMatrixAttribute"
  },
  "title" : "matrix"
}
-->

# matrix

The font’s transformation matrix attribute.

```
static let matrix: UIFontDescriptor.AttributeName
```

## Discussion

The value is a <doc://com.apple.documentation/documentation/CoreFoundation/CGAffineTransform> instance that specifies the font’s transformation matrix. The default value is the identity matrix.

Because the system applies the matrix to the text matrix at rendering time, translation isn’t available. The rendering engine determines the translation independently.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)