NSMutableFontCollection is a dedicated class that represents a mutable collection of fonts. This subclass is used to create a modifiable version of the NSFontCollection class. Using this class allows you to modify the search queries for the font descriptors used by the parent NSFontCollection class.


Managing Descriptor Queries

var queryDescriptors: [NSFontDescriptor]?

A list of NSFontDescriptors to match.

func addQuery(for: [NSFontDescriptor])

Edit the query and exclusion arrays by adding the following font descriptors.

func removeQuery(for: [NSFontDescriptor])

Edit the query and exclusion arrays by removing the following font descriptors..

var exclusionDescriptors: [NSFontDescriptor]?

Descriptors that are excluded from matching descriptors.


Inherits From