Instance Method

removeCollection(_:)

Removes the specified font collection.

Declaration

func removeCollection(_ collectionName: String) -> Bool

Parameters

collectionName

The collection to remove.

Return Value

true if the font collection was successfully removed; otherwise, false.

See Also

Methods

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

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

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

Returns an array of the font descriptors in the specified collection.

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

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

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
func fontManager(Any, willIncludeFont: String) -> Bool

Requests permission from the Font panel delegate to display the given font name in the Font panel.

Deprecated