Instance Method

removeFontDescriptor(_:fromCollection:)

Removes the specified font descriptor from the specified collection.

Declaration

func removeFontDescriptor(_ descriptor: NSFontDescriptor, fromCollection collection: String)

Parameters

descriptor

The font descriptor to remove.

collection

The font collection from which to remove the descriptor.

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 fontDescriptors(inCollection: String) -> [Any]?

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

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