PeachDrawing.Core
PeachDrawing.Core.TypefaceFont
TypefaceFont.GetGlyphAdvanceWidthDesignUnits(int) Method
This glyph’s real horizontal advance width, in font design units (see
FontUnitsPerEm for the scale) - the font’s own hmtx table, as opposed to
a MathTableMathVariants entry’s AdvanceMeasurement (the vertical
growth-direction extent only, not width). Needed because a stretched glyph - a pre-sized
size variant, or an assembled shape’s parts - is a different, wider glyph than the base
character MathTable was looked up by, so its own hmtx advance is the only
source for the actual space it needs when drawn. 0 when this font can’t resolve one (no
descriptor).
public override int GetGlyphAdvanceWidthDesignUnits(int glyphIndex);
Parameters
glyphIndex System.Int32