Instance Method

fontDescriptors(inCollection:)

Returns an array of the font descriptors in the collection specified by the given collection name.

Declaration

func fontDescriptors(inCollection collectionNames: String) -> [Any]?

Parameters

collectionName

The font collection for which to return descriptors.

Return Value

The font descriptors.

See Also

Working with Font Descriptors

func availableFontNames(matching: NSFontDescriptor) -> [Any]?

Returns the names of the fonts that match the attributes in the given font descriptor.

Deprecated
var collectionNames: [Any]

The names of the currently loaded font collections.

Deprecated
func addCollection(String, options: NSFontCollectionOptions) -> Bool

Adds a specified font collection to the font manager with a given set of options.

Deprecated
func removeCollection(String) -> Bool

Removes the specified font collection.

Deprecated
func addFontDescriptors([Any], toCollection: String)

Adds an array of font descriptors to the specified font collection.

Deprecated
func removeFontDescriptor(NSFontDescriptor, fromCollection: String)

Removes the specified font descriptor from the specified collection.

Deprecated