---
title: "localizedName(forFamily:face:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/localizedname(forfamily:face:)"
---

# localizedName(forFamily:face:)

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

## Declaration

```swift
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

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

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.

## See Also

### Setting and Examining the Selected Font

- [setSelectedFont(_:isMultiple:)](appkit/nsfontmanager/setselectedfont(_:ismultiple:).md)
- [selectedFont](appkit/nsfontmanager/selectedfont.md)
- [isMultiple](appkit/nsfontmanager/ismultiple.md)
- [sendAction()](appkit/nsfontmanager/sendaction().md)
