PeachDrawing.Skia

SkiaShapedRun Class

One run of text after shaping: which glyph to draw for each position, where each goes, and how wide the whole run is. All the arrays have one entry per glyph, in drawing order, and positions are relative to the start of the run on its baseline.

public sealed record SkiaShapedRun : System.IEquatable<PeachDrawing.Skia.SkiaShapedRun>

Inheritance System.Object → SkiaShapedRun

Implements System.IEquatable<SkiaShapedRun>

Constructors  
SkiaShapedRun(ushort[], float[], float[], uint[], float) One run of text after shaping: which glyph to draw for each position, where each goes, and how wide the whole run is. All the arrays have one entry per glyph, in drawing order, and positions are relative to the start of the run on its baseline.
Properties  
Clusters for each glyph, the index in the source text of the first character it stands for
Glyphs the glyph ids, as the typeface numbers them
Width the advance of the whole run
XOffsets how far right of the run’s start each glyph’s origin is
YOffsets how far below the baseline each glyph’s origin is (usually 0)