Class PdfGlyphRun
Glyph run preserving exact PDF positioning, font identity, and text matrix.
public sealed record PdfGlyphRun : IEquatable<PdfGlyphRun>
- Inheritance
-
PdfGlyphRun
- Implements
- Inherited Members
Remarks
TextMatrix maps text space to the current user space (the renderer's CTM stack supplies user→page). TextToPage is the full text space → default user space transform, for semantic consumers (selection, search hit boxes) that do not replay the stack.
Constructors
PdfGlyphRun(string, double, IReadOnlyList<PdfGlyph>, PdfMatrix, double, double, double, double, int, string?, string?)
Glyph run preserving exact PDF positioning, font identity, and text matrix.
public PdfGlyphRun(string FontResourceName, double FontSize, IReadOnlyList<PdfGlyph> Glyphs, PdfMatrix TextMatrix, double HorizontalScaling = 100, double CharacterSpacing = 0, double WordSpacing = 0, double TextRise = 0, int RenderingMode = 0, string? FontFamilyName = null, string? FullText = null)
Parameters
FontResourceNamestringFontSizedoubleGlyphsIReadOnlyList<PdfGlyph>TextMatrixPdfMatrixHorizontalScalingdoubleCharacterSpacingdoubleWordSpacingdoubleTextRisedoubleRenderingModeintFontFamilyNamestringFullTextstring
Remarks
TextMatrix maps text space to the current user space (the renderer's CTM stack supplies user→page). TextToPage is the full text space → default user space transform, for semantic consumers (selection, search hit boxes) that do not replay the stack.
Properties
CharacterSpacing
public double CharacterSpacing { get; init; }
Property Value
Face
Font program and style hints; null for runs built without font resolution.
public PdfFontFace? Face { get; init; }
Property Value
FontFamilyName
public string? FontFamilyName { get; init; }
Property Value
FontResourceName
public string FontResourceName { get; init; }
Property Value
FontSize
public double FontSize { get; init; }
Property Value
FullText
public string? FullText { get; init; }
Property Value
Glyphs
public IReadOnlyList<PdfGlyph> Glyphs { get; init; }
Property Value
HorizontalScaling
public double HorizontalScaling { get; init; }
Property Value
IsInvisible
True when mode 3/7 (invisible): kept for selection/search, never painted.
public bool IsInvisible { get; }
Property Value
RenderingMode
public int RenderingMode { get; init; }
Property Value
Stroke
Stroke parameters (line width etc.) for stroking rendering modes.
public PdfStroke? Stroke { get; init; }
Property Value
StrokePaint
Stroke paint for rendering modes that stroke (1, 2, 5, 6).
public PdfPaint? StrokePaint { get; init; }
Property Value
TextMatrix
public PdfMatrix TextMatrix { get; init; }
Property Value
TextRise
public double TextRise { get; init; }
Property Value
TextToPage
Text space → default user (page) space. Identity-based when produced by older builders.
public PdfMatrix TextToPage { get; init; }
Property Value
WordSpacing
public double WordSpacing { get; init; }