---
title: "setUserFixedPitch(_:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsfont/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.

## Declaration

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

## Discussion

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

## See Also

### Related Documentation

- [userFixedPitchFont(ofSize:)](appkit/nsfont/userfixedpitchfont(ofsize:).md)

### Setting User Fonts

- [setUser(_:)](appkit/nsfont/setuser(_:).md)
