---
title: keyEquivalentFont
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbuttoncell/keyequivalentfont
---

# keyEquivalentFont

The font used to draw the button’s key equivalent.

## Declaration

```swift
var keyEquivalentFont: NSFont? { get set }
```

## Discussion

Discussion The value of this property is the font object that describes the font used to draw the button’s key equivalent. If the property value is nil, the button doesn’t have a key equivalent. Setting this property redraws the button if necessary. Setting this property on a button that has no key equivalent does nothing. Note that the default font is the same as the font used to draw the title.

## See Also

### Related Documentation

- [font](appkit/nscell/font.md)

### Managing the Key Equivalent

- [keyEquivalent](appkit/nsbuttoncell/keyequivalent.md)
- [keyEquivalentModifierMask](appkit/nsbuttoncell/keyequivalentmodifiermask.md)
- [setKeyEquivalentFont(_:size:)](appkit/nsbuttoncell/setkeyequivalentfont(_:size:).md)
