---
title: boundingRectForFont
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsfont/boundingrectforfont
---

# boundingRectForFont

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

## Declaration

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

## Discussion

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

## See Also

### Related Documentation

- [boundingRect(forGlyph:)](appkit/nsfont/boundingrect(forglyph:).md)

### Getting Bounding Rectangles

- [boundingRect(forCGGlyph:)](appkit/nsfont/boundingrect(forcgglyph:).md)
- [getBoundingRects(_:forCGGlyphs:count:)](appkit/nsfont/getboundingrects(_:forcgglyphs:count:).md)
