PeachDrawing.Core
PeachDrawing.Core
GlyphPlacement Struct
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 readonly record struct GlyphPlacement : System.IEquatable<PeachDrawing.Core.GlyphPlacement>
Implements System.IEquatable<GlyphPlacement>
| Constructors | |
|---|---|
| GlyphPlacement(int, double, double, string) | 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). |
| Properties | |
|---|---|
| GlyphIndex | the glyph’s index in the font |
| Text | 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. |
| X | the glyph origin’s x position |
| Y | the glyph origin’s baseline y position |