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

# boundingRectForFont

The font’s bounding rectangle, scaled to the font’s size.

```
var boundingRectForFont: NSRect { get }
```

## Discussion

The bounding rectangle is the union of the bounding rectangles of every glyph in the font.

## See Also

[`boundingRect(forGlyph:)`](/documentation/AppKit/NSFont/boundingRect(forGlyph:))

Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size.



---

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)