<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.11.0"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/fontManager(_:willIncludeFont:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)fontManager:willIncludeFont:"
  },
  "title" : "fontManager(_:willIncludeFont:)"
}
-->

# fontManager(_:willIncludeFont:)

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

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

If the Font panel delegate returns [`YES`](/documentation/ObjectiveC/YES), `fontName` is listed; if the delegate returns [`NO`](/documentation/ObjectiveC/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.

> Important:
> This delegate method is not called in macOS versions 10.3 and later.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)