Type Property

familyNames

Returns an array of font family names available on the system.

Declaration

@property(class, nonatomic, readonly) NSArray<NSString *> *familyNames;

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 fontNamesForFamilyName: 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.

See Also

Getting the Available Font Names

+ fontNamesForFamilyName:

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