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

# controlContentFont(ofSize:)

Returns the font used for the content of controls in the specified size.

```
class func controlContentFont(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.

## Discussion

For example, in a table, the user’s input uses the control content font, and the table’s header uses another font. If `fontSize` is 0 or negative, returns the control content font at the default size.

## See Also

[`init(name:size:)`](/documentation/AppKit/NSFont/init(name:size:))

Creates a font object for the specified font name and font size.



---

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)