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

Managing the Font Panel and Font Menu

enabled

A Boolean value that indicates if the font conversion system’s user interface items (the Font panel and Font menu items) are enabled.

- fontPanel:

Returns the application’s shared Font panel object, optionally creating it if necessary.

- setFontMenu:

Records the given menu as the application’s Font menu.

- fontMenu:

Returns the menu that’s hooked up to the font conversion system, optionally creating it if necessary.