PeachDrawing.Core
PeachDrawing.Core.GlyphPlacement
GlyphPlacement(int, double, double, string) Constructor
One glyph, addressed directly by its font glyph index (not a Unicode character) and placed at an explicit position - see DrawGlyphs(IReadOnlyList<GlyphPlacement>, Font, PaintColor).
public GlyphPlacement(int GlyphIndex, double X, double Y, string? Text=null);
Parameters
GlyphIndex System.Int32
the glyph’s index in the font
the glyph origin’s x position
the glyph origin’s baseline y position
Text System.String
the text the glyph stands for, or null when it has none (a stretchy-operator part, say). A backend that records text for extraction (a PDF’s ToUnicode map) uses it, so a glyph that is a ligature, or one of several glyphs for one character, still copies out as the characters it came from. It does not affect what is drawn.