---
title: "fontManager(_:willIncludeFont:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/fontmanager(_:willincludefont:)"
---

# fontManager(_:willIncludeFont:)

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

## Declaration

```swift
func fontManager(_ sender: Any, willIncludeFont fontName: String) -> Bool
```

## Parameters

- `sender`: 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

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

## Discussion

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. important: This delegate method is not called in macOS versions 10.3 and later.

## See Also

### Deprecated Methods

- [accessibilityAttributeNames()](objectivec/nsobject-swift.class/accessibilityattributenames().md)
- [accessibilityAttributeValue(_:)](objectivec/nsobject-swift.class/accessibilityattributevalue(_:).md)
- [accessibilityAttributeValue(_:forParameter:)](objectivec/nsobject-swift.class/accessibilityattributevalue(_:forparameter:).md)
- [accessibilityActionDescription(_:)](objectivec/nsobject-swift.class/accessibilityactiondescription(_:).md)
- [accessibilityActionNames()](objectivec/nsobject-swift.class/accessibilityactionnames().md)
- [accessibilityArrayAttributeCount(_:)](objectivec/nsobject-swift.class/accessibilityarrayattributecount(_:).md)
- [accessibilityArrayAttributeValues(_:index:maxCount:)](objectivec/nsobject-swift.class/accessibilityarrayattributevalues(_:index:maxcount:).md)
- [accessibilityIndex(ofChild:)](objectivec/nsobject-swift.class/accessibilityindex(ofchild:).md)
- [accessibilityIsAttributeSettable(_:)](objectivec/nsobject-swift.class/accessibilityisattributesettable(_:).md)
- [accessibilityIsIgnored()](objectivec/nsobject-swift.class/accessibilityisignored().md)
- [accessibilityParameterizedAttributeNames()](objectivec/nsobject-swift.class/accessibilityparameterizedattributenames().md)
- [accessibilityPerformAction(_:)](objectivec/nsobject-swift.class/accessibilityperformaction(_:).md)
- [accessibilitySetOverrideValue(_:forAttribute:)](objectivec/nsobject-swift.class/accessibilitysetoverridevalue(_:forattribute:).md)
- [accessibilitySetValue(_:forAttribute:)](objectivec/nsobject-swift.class/accessibilitysetvalue(_:forattribute:).md)
- [fileManager(_:shouldProceedAfterError:)](objectivec/nsobject-swift.class/filemanager(_:shouldproceedaftererror:).md)
