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

# advancement(forGlyph:)

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(forGlyph glyph: NSGlyph) -> NSSize
```

## Parameters

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

## Return Value

Return Value The advancement spacing in points.

## Discussion

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

## See Also

### Related Documentation

- [maximumAdvancement](appkit/nsfont/maximumadvancement.md)

### Instance Methods

- [boundingRect(forGlyph:)](appkit/nsfont/boundingrect(forglyph:).md)
- [getAdvancements(_:forGlyphs:count:)](appkit/nsfont/getadvancements(_:forglyphs:count:).md)
- [getAdvancements(_:forPackedGlyphs:length:)](appkit/nsfont/getadvancements(_:forpackedglyphs:length:).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)
