<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontAction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSFontAction"
  },
  "title" : "NSFontAction"
}
-->

# NSFontAction

Actions that modify a font.

```
enum NSFontAction
```

## Topics

### Constants

[`NSNoFontChangeAction`](/documentation/AppKit/NSFontAction/noFontChangeAction)

No action; the font is returned unchanged.

[`NSViaPanelFontAction`](/documentation/AppKit/NSFontAction/viaPanelFontAction)

Converts the font according to the `NSFontPanel` method `panelConvertFont:`.

[`NSAddTraitFontAction`](/documentation/AppKit/NSFontAction/addTraitFontAction)

Converts the font to have an additional trait using [`convert(_:toHaveTrait:)`](/documentation/AppKit/NSFontManager/convert(_:toHaveTrait:)).

[`NSSizeUpFontAction`](/documentation/AppKit/NSFontAction/sizeUpFontAction)

Converts the font to a larger size using [`convert(_:toSize:)`](/documentation/AppKit/NSFontManager/convert(_:toSize:)).

[`NSSizeDownFontAction`](/documentation/AppKit/NSFontAction/sizeDownFontAction)

Converts the font to a smaller size using [`convert(_:toSize:)`](/documentation/AppKit/NSFontManager/convert(_:toSize:)).

[`NSHeavierFontAction`](/documentation/AppKit/NSFontAction/heavierFontAction)

Converts the font to a heavier weight using [`convertWeight(_:of:)`](/documentation/AppKit/NSFontManager/convertWeight(_:of:)).

[`NSLighterFontAction`](/documentation/AppKit/NSFontAction/lighterFontAction)

Converts the font to a lighter weight using [`convertWeight(_:of:)`](/documentation/AppKit/NSFontManager/convertWeight(_:of:)).

[`NSRemoveTraitFontAction`](/documentation/AppKit/NSFontAction/removeTraitFontAction)

Converts the font to remove a trait using [`convert(_:toNotHaveTrait:)`](/documentation/AppKit/NSFontManager/convert(_:toNotHaveTrait:)).

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)