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

# setUserFixedPitch(_:)

Sets the font used by default for documents and other text under the user’s control, when that font should be fixed-pitch, to the specified font.

```
class func setUserFixedPitch(_ font: NSFont?)
```

## Discussion

Specifying `aFont` as `nil` causes the default to be removed from the application domain.

## See Also

[`userFixedPitchFont(ofSize:)`](/documentation/AppKit/NSFont/userFixedPitchFont(ofSize:))

Returns the font used by default for documents and other text under the user’s control (that is, text whose font the user can normally change), when that font should be fixed-pitch, in the specified 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)