Returns an array of font family names available on the system.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- UIKit
Declaration
class var familyNames: [String] { get }
Return Value
An array of NSString
objects, each of which contains the name of a font family.
Discussion
Font family names correspond to the base name of a font, such as Times New Roman
. You can pass the returned strings to the font
method to retrieve a list of font names available for that family. You can then use the corresponding font name to retrieve an actual font object.