NSMutableFontCollection Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.7 and later.
Declared in
NSFontCollection.h

Overview

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.

Tasks

Managing Descriptor Queries

Instance Methods

addQueryForDescriptors:

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

- (void)addQueryForDescriptors:(NSArray *)descriptors
Parameters
descriptors

The font descriptor to add to the query.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSFontCollection.h

removeQueryForDescriptors:

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

- (void)removeQueryForDescriptors:(NSArray *)descriptors
Parameters
descriptors

The font descriptor to add to the query.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSFontCollection.h

setExclusionDescriptors:

Set descriptors that are excluded from matching descriptors.

- (void)setExclusionDescriptors:(NSArray *)descriptors
Parameters
descriptors

An array of font descriptors to exclude from the matchingDecriptors method.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSFontCollection.h

setQueryDescriptors:

Creates a list of NSFontDescriptors to match.

- (void)setQueryDescriptors:(NSArray *)descriptors
Parameters
descriptors

The font descriptors to match.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSFontCollection.h