---
title: "advancement(forCGGlyph:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsfont/advancement(forcgglyph:)"
---

# advancement(forCGGlyph:)

Returns the nominal spacing for the given glyph—the distance the current point moves after showing the glyph—accounting for the receiver’s size.

## Declaration

```swift
func advancement(forCGGlyph glyph: CGGlyph) -> NSSize
```

## Parameters

- `glyph`: The glyph whose advancement is returned.

## Return Value

Return Value The advancement spacing in points.

## Discussion

Discussion The spacing is given according to the glyph’s movement direction, which is either strictly horizontal or strictly vertical.

## See Also

### Getting Glyph Advancements

- [maximumAdvancement](appkit/nsfont/maximumadvancement.md)
- [getAdvancements(_:forCGGlyphs:count:)](appkit/nsfont/getadvancements(_:forcgglyphs:count:).md)
