---
title: "getBoundingRects(_:forCGGlyphs:count:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfont/getboundingrects(_:forcgglyphs:count:)"
---

# getBoundingRects(_:forCGGlyphs:count:)

Returns an array of the bounding rectangles for the specified glyphs rendered by the receiver.

## Declaration

```swift
func getBoundingRects(_ bounds: NSRectArray, forCGGlyphs glyphs: UnsafePointer<CGGlyph>, count glyphCount: Int)
```

## Discussion

Discussion Returns in bounds an array of the bounding rectangles for the glyphs specified by glyphs and rendered by the receiver. The glyphCount value must specify the count of glyphs passed in glyphs.

## See Also

### Getting Bounding Rectangles

- [boundingRectForFont](appkit/nsfont/boundingrectforfont.md)
- [boundingRect(forCGGlyph:)](appkit/nsfont/boundingrect(forcgglyph:).md)
