---
title: "labelFont(ofSize:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsfont/labelfont(ofsize:)"
---

# labelFont(ofSize:)

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

## Declaration

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

## Parameters

- `fontSize`: The size in points to which the font is scaled.

## Return Value

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

## Discussion

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 > Typography.

## See Also

### Creating UI Element Fonts

- [messageFont(ofSize:)](appkit/nsfont/messagefont(ofsize:).md)
- [menuBarFont(ofSize:)](appkit/nsfont/menubarfont(ofsize:).md)
- [menuFont(ofSize:)](appkit/nsfont/menufont(ofsize:).md)
- [controlContentFont(ofSize:)](appkit/nsfont/controlcontentfont(ofsize:).md)
- [titleBarFont(ofSize:)](appkit/nsfont/titlebarfont(ofsize:).md)
- [paletteFont(ofSize:)](appkit/nsfont/palettefont(ofsize:).md)
- [toolTipsFont(ofSize:)](appkit/nsfont/tooltipsfont(ofsize:).md)
- [labelFontSize](appkit/nsfont/labelfontsize.md)
- [systemFontSize(for:)](appkit/nsfont/systemfontsize(for:).md)
