Instance Method

fontManager:willIncludeFont:

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

Declaration

- (BOOL)fontManager:(id)sender willIncludeFont:(NSString *)fontName;

Parameters

theFontManager

The font manager making the request.

fontName

The full PostScript name of the font to display, such as Helvetica-BoldOblique or Helvetica-Narrow-Bold.

Return Value

If the Font panel delegate returns YES, fontName is listed; if the delegate returns NO, it isn’t.

Discussion

In macOS versions 10.2 and earlier, this method is invoked repeatedly as necessary whenever the Font panel needs updating, such as when the Font panel is first loaded, and when the user selects a family name to see which typefaces in that family are available. Your implementation should execute fairly quickly to ensure the responsiveness of the Font panel.

See Also

Methods

- availableFontNamesMatchingFontDescriptor:

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

Deprecated
- fontDescriptorsInCollection:

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

Deprecated
- addCollection:options:

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

Deprecated
- removeCollection:

Removes the specified font collection.

Deprecated
- addFontDescriptors:toCollection:

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

Deprecated
- removeFontDescriptor:fromCollection:

Removes the specified font descriptor from the specified collection.

Deprecated