---
title: fontName
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfont/fontname
---

# fontName

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

## Declaration

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

## Discussion

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 property instead.

## See Also

### Getting Font Names

- [displayName](appkit/nsfont/displayname.md)
- [familyName](appkit/nsfont/familyname.md)
