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

# font

The font for the text storage.

## Declaration

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

## Discussion

Discussion Unless you’re dealing with scriptability, you shouldn’t use or modify this property directly.

## See Also

### Accessing scriptable properties

- [attributeRuns](appkit/nstextstorage/attributeruns.md)
- [paragraphs](appkit/nstextstorage/paragraphs.md)
- [words](appkit/nstextstorage/words.md)
- [characters](appkit/nstextstorage/characters.md)
- [foregroundColor](appkit/nstextstorage/foregroundcolor.md)
