<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontManager/selectedFont",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFontManager(py)selectedFont"
  },
  "title" : "selectedFont"
}
-->

# selectedFont

The currently selected font object.

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

## Discussion

The value of this property is the last font recorded with a [`setSelectedFont(_:isMultiple:)`](/documentation/AppKit/NSFontManager/setSelectedFont(_:isMultiple:)) message.

While fonts are being converted in response to a [`convert(_:)`](/documentation/AppKit/NSFontManager/convert(_:)) message, you can determine the font selected in the Font panel like this:

```objc
NSFontManager *fontManager = [NSFontManager sharedFontManager];
panelFont = [fontManager convertFont:[fontManager.selectedFont]];
```

---

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)