- availableFontNamesMatchingFontDescriptor:
- fontDescriptorsInCollection:
- addCollection:options:
- addFontDescriptors:toCollection:
- removeFontDescriptor:fromCollection:
Deprecated 非推奨
Use NSFont
for providing filtered font lists.
Availability
Technology
- (BOOL)fontManager:(id)sender
willIncludeFont:(NSString
*)fontName;
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.
If the Font panel delegate returns YES
, font
is listed; if the delegate returns NO
, it isn’t.
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.
Important 重要
This delegate method is not called in macOS versions 10.3 and later.
- availableFontNamesMatchingFontDescriptor:
- fontDescriptorsInCollection:
- addCollection:options:
- addFontDescriptors:toCollection:
- removeFontDescriptor:fromCollection: