<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFont/labelFont(ofSize:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFont(cm)labelFontOfSize:"
  },
  "title" : "labelFont(ofSize:)"
}
-->

# labelFont(ofSize:)

Returns the font used for standard interface labels in the specified size.

```
class func labelFont(ofSize fontSize: CGFloat) -> NSFont
```

## Parameters

`fontSize`

The size in points to which the font is scaled.

## Return Value

A font object of the specified size. If `fontSize` is 0 or negative, returns the label font with the default size.

## Discussion

The label font (Lucida Grande Regular 10 point) is used for the labels on toolbar buttons and to label tick marks on full-size sliders. For more information on system fonts, see Human Interface Guidelines > <doc://com.apple.documentation/design/Human-Interface-Guidelines/typography>.

---

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)