---
title: font
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstext/font
---

# font

The font of all the receiver’s text.

## Declaration

```swift
var font: NSFont? { get set }
```

## Discussion

Discussion When the specified font doesn’t include a character, the text system uses an alternate font that contains the character. The substituted font may not have compatible metrics.

## See Also

### Changing the font

- [changeFont(_:)](appkit/nstext/changefont(_:).md)
- [setFont(_:range:)](appkit/nstext/setfont(_:range:).md)
