<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFont/fontNames(forFamilyName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFont(cm)fontNamesForFamilyName:"
  },
  "title" : "fontNames(forFamilyName:)"
}
-->

# fontNames(forFamilyName:)

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

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

## Parameters

`familyName`

The name of the font family. Use the [`familyNames`](/documentation/UIKit/UIFont/familyNames) method to get an array of the available font family names on the system.

## Return Value

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

## Discussion

You can pass the returned strings as parameters to the [`init(name:size:)`](/documentation/UIKit/UIFont/init(name:size:)) method to retrieve an actual font object.

## See Also

[`+  fontWithName:size:`](/documentation/UIKit/UIFont/init(name:size:))

Creates and returns a font object for the specified font name and size.



---

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)