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

# font

The font used for the tab view’s label text.

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

## Discussion

The default value of this property is the message font of default size (see [`messageFont(ofSize:)`](/documentation/AppKit/NSFont/messageFont(ofSize:))), which is equivalent to the system font of default size. Tab height is adjusted automatically to accommodate a new font size. If the view allows truncating, tab labels are truncated as needed.

## See Also

[`allowsTruncatedLabels`](/documentation/AppKit/NSTabView/allowsTruncatedLabels)

A Boolean value that indicates if the tab view allows truncating for labels that don’t fit on a tab.



---

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)