---
title: "fontNames(forFamilyName:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uifont/fontnames(forfamilyname:)"
---

# fontNames(forFamilyName:)

Returns an array of font names available in a particular font family.

## Declaration

```swift
class func fontNames(forFamilyName familyName: String) -> [String]
```

## Parameters

- `familyName`: The name of the font family. Use the doc://com.apple.uikit/documentation/UIKit/UIFont/familyNames method to get an array of the available font family names on the system.

## Return Value

Return Value An array of NSString objects, each of which contains a font name associated with the specified family.

## Discussion

Discussion You can pass the returned strings as parameters to the init(name:size:) method to retrieve an actual font object.

## See Also

### Related Documentation

- [init(name:size:)](uikit/uifont/init(name:size:).md)

### Getting the Available Font Names

- [familyNames](uikit/uifont/familynames.md)
