---
title: "getAdvancements(_:forPackedGlyphs:length:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfont/getadvancements(_:forpackedglyphs:length:)"
---

# getAdvancements(_:forPackedGlyphs:length:)

Returns an array of the advancements for the specified packed glyphs and rendered by the receiver.

## Declaration

```swift
func getAdvancements(_ advancements: NSSizeArray, forPackedGlyphs packedGlyphs: UnsafeRawPointer, length: Int)
```

## Discussion

Discussion Returns in advancements an array of the advancements for the packed glyphs specified by packedGlyphs and rendered by the receiver. The  glyphCount must specify the count of glyphs passed in packedGlyphs.

## See Also

### Related Documentation

- [boundingRectForFont](appkit/nsfont/boundingrectforfont.md)

### Instance Methods

- [advancement(forGlyph:)](appkit/nsfont/advancement(forglyph:).md)
- [boundingRect(forGlyph:)](appkit/nsfont/boundingrect(forglyph:).md)
- [getAdvancements(_:forGlyphs:count:)](appkit/nsfont/getadvancements(_:forglyphs:count:).md)
- [getBoundingRects(_:forGlyphs:count:)](appkit/nsfont/getboundingrects(_:forglyphs:count:).md)
- [glyph(withName:)](appkit/nsfont/glyph(withname:).md)
- [screenFont(with:)](appkit/nsfont/screenfont(with:).md)
- [withSize(_:)](appkit/nsfont/withsize(_:).md)
