---
title: fontBBox
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgfont/fontbbox
---

# fontBBox

Returns the bounding box of a font.

## Declaration

```swift
var fontBBox: CGRect { get }
```

## Discussion

Discussion The font bounding box is the union of all of the bounding boxes for all the glyphs in a font. The value is specified in glyph space units.

## See Also

### Examining Font Metrics

- [ascent](coregraphics/cgfont/ascent.md)
- [capHeight](coregraphics/cgfont/capheight.md)
- [descent](coregraphics/cgfont/descent.md)
- [italicAngle](coregraphics/cgfont/italicangle.md)
- [leading](coregraphics/cgfont/leading.md)
- [stemV](coregraphics/cgfont/stemv.md)
- [unitsPerEm](coregraphics/cgfont/unitsperem.md)
- [xHeight](coregraphics/cgfont/xheight.md)
