---
title: "modifyFontViaPanel(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/modifyfontviapanel(_:)"
---

# modifyFontViaPanel(_:)

Modifies a font trait using input from the Font panel.

## Declaration

```swift
func modifyFontViaPanel(_ sender: Any?)
```

## Parameters

- `sender`: The control that sent the message.

## Discussion

Discussion By default, the action message is changeFont:. This action method causes the receiver to send its action message up the responder chain. When a responder replies by providing a font to convert in a convert(_:) message, the receiver converts the font by sending a convert(_:) message to the Font panel. The panel in turn may send convert(_:toFamily:), convert(_:toHaveTrait:), and other specific conversion methods to make its change.

## See Also

### Sending Action Methods

- [addFontTrait(_:)](appkit/nsfontmanager/addfonttrait(_:).md)
- [removeFontTrait(_:)](appkit/nsfontmanager/removefonttrait(_:).md)
- [modifyFont(_:)](appkit/nsfontmanager/modifyfont(_:).md)
- [orderFrontStylesPanel(_:)](appkit/nsfontmanager/orderfrontstylespanel(_:).md)
- [orderFrontFontPanel(_:)](appkit/nsfontmanager/orderfrontfontpanel(_:).md)
- [NSFontAction](appkit/nsfontaction.md)
