<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBox/titleFont",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBox(py)titleFont"
  },
  "title" : "titleFont"
}
-->

# titleFont

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

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

## Discussion

By default, the title is drawn using the small system font (obtained using ([`smallSystemFontSize`](/documentation/AppKit/NSFont/smallSystemFontSize) as the parameter of [`systemFont(ofSize:)`](/documentation/AppKit/NSFont/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.

---

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)