Table of Contents

Class PdfGlyphRun

Namespace
PdfEngine.Vector
Assembly
PdfEngine.Abstractions.dll

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

FontResourceName string
FontSize double
Glyphs IReadOnlyList<PdfGlyph>
TextMatrix PdfMatrix
HorizontalScaling double
CharacterSpacing double
WordSpacing double
TextRise double
RenderingMode int
FontFamilyName string
FullText string

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

double

Face

Font program and style hints; null for runs built without font resolution.

public PdfFontFace? Face { get; init; }

Property Value

PdfFontFace

FontFamilyName

public string? FontFamilyName { get; init; }

Property Value

string

FontResourceName

public string FontResourceName { get; init; }

Property Value

string

FontSize

public double FontSize { get; init; }

Property Value

double

FullText

public string? FullText { get; init; }

Property Value

string

Glyphs

public IReadOnlyList<PdfGlyph> Glyphs { get; init; }

Property Value

IReadOnlyList<PdfGlyph>

HorizontalScaling

public double HorizontalScaling { get; init; }

Property Value

double

IsInvisible

True when mode 3/7 (invisible): kept for selection/search, never painted.

public bool IsInvisible { get; }

Property Value

bool

RenderingMode

public int RenderingMode { get; init; }

Property Value

int

Stroke

Stroke parameters (line width etc.) for stroking rendering modes.

public PdfStroke? Stroke { get; init; }

Property Value

PdfStroke

StrokePaint

Stroke paint for rendering modes that stroke (1, 2, 5, 6).

public PdfPaint? StrokePaint { get; init; }

Property Value

PdfPaint

TextMatrix

public PdfMatrix TextMatrix { get; init; }

Property Value

PdfMatrix

TextRise

public double TextRise { get; init; }

Property Value

double

TextToPage

Text space → default user (page) space. Identity-based when produced by older builders.

public PdfMatrix TextToPage { get; init; }

Property Value

PdfMatrix

WordSpacing

public double WordSpacing { get; init; }

Property Value

double