PeachDrawing.Text

PeachDrawing.Text.Layout.PlacedRun

PlacedRun.GetGlyphAdvance(int) Method

How far the pen moves after a glyph of the run, in layout units: its advance and positioning adjustment, plus the letter spacing, and the word spacing and justification for a space. A glyph is drawn at the sum of the advances of the glyphs before it, from X, plus its own XOffset and YOffset scaled by the size over the units per em.

public double GetGlyphAdvance(int glyphIndex);

Parameters

glyphIndex System.Int32

The index in Glyphs.

Returns

System.Double

Exceptions

System.ArgumentOutOfRangeException
The index is outside the run’s glyphs.