<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFontManager/localizedName(forFamily:face:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFontManager(im)localizedNameForFamily:face:"
  },
  "title" : "localizedName(forFamily:face:)"
}
-->

# localizedName(forFamily:face:)

Returns a localized string with the name of the specified font family and face, if one exists.

```
func localizedName(forFamily family: String, face faceKey: String?) -> String
```

## Parameters

`family`

The font family, for example, `@"Times"`.

`faceKey`

The font face, for example, `@"Roman"`.

## Return Value

A localized string with the name of the specified font family and face, or, if `face` is `nil`, the font family only.

## Discussion

The user’s locale is determined from the user’s `NSLanguages` default setting. The method also loads the localized strings for the font, if they aren’t already loaded.

---

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)