---
title: selectedFont
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfontmanager/selectedfont
---

# selectedFont

The currently selected font object.

## Declaration

```swift
var selectedFont: NSFont? { get }
```

## Discussion

Discussion The value of this property is the last font recorded with a setSelectedFont(_:isMultiple:) message. While fonts are being converted in response to a convert(_:) message, you can determine the font selected in the Font panel like this: NSFontManager *fontManager = [NSFontManager sharedFontManager]; panelFont = [fontManager convertFont:[fontManager.selectedFont]];

## See Also

### Setting and Examining the Selected Font

- [setSelectedFont(_:isMultiple:)](appkit/nsfontmanager/setselectedfont(_:ismultiple:).md)
- [isMultiple](appkit/nsfontmanager/ismultiple.md)
- [sendAction()](appkit/nsfontmanager/sendaction().md)
- [localizedName(forFamily:face:)](appkit/nsfontmanager/localizedname(forfamily:face:).md)
