---
title: "fontPanel(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfontmanager/fontpanel(_:)"
---

# fontPanel(_:)

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

## Declaration

```swift
func fontPanel(_ create: Bool) -> NSFontPanel?
```

## Parameters

- `create`: If doc://com.apple.documentation/documentation/Swift/true, the Font panel object is created if necessary; if doc://com.apple.documentation/documentation/Swift/false, it is not.

## Return Value

Return Value The application’s shared Font panel object.

## See Also

### Related Documentation

- [shared](appkit/nsfontpanel/shared.md)
- [setFontPanelFactory(_:)](appkit/nsfontmanager/setfontpanelfactory(_:).md)
- [sharedFontPanelExists](appkit/nsfontpanel/sharedfontpanelexists.md)

### Managing the Font Panel and Font Menu

- [isEnabled](appkit/nsfontmanager/isenabled.md)
- [setFontMenu(_:)](appkit/nsfontmanager/setfontmenu(_:).md)
- [fontMenu(_:)](appkit/nsfontmanager/fontmenu(_:).md)
