---
title: titleFont
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbox/titlefont
---

# titleFont

The font object used to draw the receiver’s title.

## Declaration

```swift
var titleFont: NSFont { get set }
```

## Discussion

Discussion By default, the title is drawn using the small system font (obtained using (smallSystemFontSize as the parameter of systemFont(ofSize:), both NSFont class methods). If the size of the new font is different from that of the old font, the content view is resized to absorb the difference.

## See Also

### Configuring Boxes

- [borderRect](appkit/nsbox/borderrect.md)
- [boxType](appkit/nsbox/boxtype-swift.property.md)
- [borderType](appkit/nsbox/bordertype.md)
- [isTransparent](appkit/nsbox/istransparent.md)
- [title](appkit/nsbox/title.md)
- [titlePosition](appkit/nsbox/titleposition-swift.property.md)
- [titleCell](appkit/nsbox/titlecell.md)
- [titleRect](appkit/nsbox/titlerect.md)
