<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFont/getAdvancements(_:forPackedGlyphs:length:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFont(im)getAdvancements:forPackedGlyphs:length:"
  },
  "title" : "getAdvancements(_:forPackedGlyphs:length:)"
}
-->

# getAdvancements(_:forPackedGlyphs:length:)

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

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

## 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

[`boundingRectForFont`](/documentation/AppKit/NSFont/boundingRectForFont)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)