---
title: matrix
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfont/matrix
---

# matrix

The transformation matrix associated with the font.

## Declaration

```swift
var matrix: UnsafePointer<CGFloat> { get }
```

## Discussion

Discussion This property contains a standard six-element transformation matrix as used in the PostScript language, specifically with the makefont operator. In most cases, with a font of fontSize, this matrix is [fontSize 0 0 fontSize 0 0].

## See Also

### Related Documentation

- [init(descriptor:size:)](appkit/nsfont/init(descriptor:size:).md)

### Getting the Font Matrices

- [textTransform](appkit/nsfont/texttransform.md)
- [identityMatrix](appkit/nsfont/identitymatrix.md)
