---
title: "getGlyphBBoxes(glyphs:count:bboxes:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgfont/getglyphbboxes(glyphs:count:bboxes:)"
---

# getGlyphBBoxes(glyphs:count:bboxes:)

Get the bounding box of each glyph in an array.

## Declaration

```swift
func getGlyphBBoxes(glyphs: UnsafePointer<CGGlyph>, count: Int, bboxes: UnsafeMutablePointer<CGRect>) -> Bool
```

## Parameters

- `glyphs`: A array of glyphs.
- `count`: The number of items in the glyphs array.
- `bboxes`: On return, the bounding boxes for each glyph.

## Return Value

Return Value false if bounding boxes can’t be retrieved for any reason; true  otherwise.

## See Also

### Working with Glyphs

- [numberOfGlyphs](coregraphics/cgfont/numberofglyphs.md)
- [name(for:)](coregraphics/cgfont/name(for:).md)
- [getGlyphWithGlyphName(name:)](coregraphics/cgfont/getglyphwithglyphname(name:).md)
- [getGlyphAdvances(glyphs:count:advances:)](coregraphics/cgfont/getglyphadvances(glyphs:count:advances:).md)
- [CGGlyph](coregraphics/cgglyph.md)
- [kCGGlyphMax](coregraphics/kcgglyphmax.md)
- [CGFontIndex](coregraphics/cgfontindex.md)
- [kCGFontIndexMax](coregraphics/kcgfontindexmax.md)
- [kCGFontIndexInvalid](coregraphics/kcgfontindexinvalid.md)
