Class PdfGlyph
Individual positioned glyph in a glyph run.
public sealed record PdfGlyph : IEquatable<PdfGlyph>
- Inheritance
-
PdfGlyph
- Implements
- Inherited Members
Constructors
PdfGlyph(ushort, double, double, double, double, string?, int, double)
Individual positioned glyph in a glyph run.
public PdfGlyph(ushort GlyphId, double AdvanceX, double AdvanceY, double OffsetX = 0, double OffsetY = 0, string? Unicode = null, int CharCode = -1, double Width = -1)
Parameters
GlyphIdushortGlyph index inside the run's font program when Face carries one; otherwise the character code / CID (kept for diagnostics).
AdvanceXdoubleHorizontal displacement in text space (font size, Tc, Tw and Tz applied).
AdvanceYdoubleOffsetXdoubleGlyph origin relative to the run origin, in text space.
OffsetYdoubleUnicodestringSemantic text for selection/search/copy. Never used to lay out glyphs (ADR-006).
CharCodeintOriginal PDF character code (or CID for composite fonts); -1 when unknown.
WidthdoubleThe glyph's width from the font's metrics (/Widths), in em; -1 when not known.
Properties
AdvanceX
Horizontal displacement in text space (font size, Tc, Tw and Tz applied).
public double AdvanceX { get; init; }
Property Value
AdvanceY
public double AdvanceY { get; init; }
Property Value
CharCode
Original PDF character code (or CID for composite fonts); -1 when unknown.
public int CharCode { get; init; }
Property Value
GlyphId
Glyph index inside the run's font program when Face carries one; otherwise the character code / CID (kept for diagnostics).
public ushort GlyphId { get; init; }
Property Value
OffsetX
Glyph origin relative to the run origin, in text space.
public double OffsetX { get; init; }
Property Value
OffsetY
public double OffsetY { get; init; }
Property Value
Unicode
Semantic text for selection/search/copy. Never used to lay out glyphs (ADR-006).
public string? Unicode { get; init; }
Property Value
Width
The glyph's width from the font's metrics (/Widths), in em; -1 when not known.
public double Width { get; init; }