<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/updateFontPanel()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(im)updateFontPanel"
  },
  "title" : "updateFontPanel()"
}
-->

# updateFontPanel()

Updates the Font panel to contain the font attributes of the selection.

```
func updateFontPanel()
```

## Discussion

Does nothing if the receiver doesn’t use the Font panel. You should never need to invoke this method directly, but you can override it if needed to handle additional font attributes.

## See Also

[`usesFontPanel`](/documentation/AppKit/NSTextView/usesFontPanel)

A Boolean value that controls whether the text views sharing the receiver’s layout manager use the Font panel and Font menu.



---

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)