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

# boundingRect(forGlyph:)

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

```
func boundingRect(forGlyph glyph: NSGlyph) -> NSRect
```

## Discussion

Japanese fonts encoded with the scheme “EUC12-NJE-CFEncoding” do not have individual metrics or bounding boxes available for the glyphs above 127. For those glyphs, this method returns the bounding rectangle for the font instead.

## See Also

[`boundingRectForFont`](/documentation/AppKit/NSFont/boundingRectForFont)

The font’s bounding rectangle, scaled to the font’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)