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

# fontName

The full name of the font, as used in PostScript language code—for example, “Times-Roman” or “Helvetica-Oblique.”

```
var fontName: String { get }
```

## Discussion

The value in this property is intended for an application’s internal usage and not for display. To get a name that you can display to the user, use the [`displayName`](/documentation/AppKit/NSFont/displayName) property instead.

---

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)