Back to API Reference
Struct

ShapingResult

sealed

Result of a shaping operation containing glyphs and metrics.

Remarks

This is a ref struct to allow returning a span without allocation.
[ctor]public ShapingResult(ReadOnlySpan<ShapedGlyph> glyphs, float totalAdvance)

Initializes a new instance of the ShapingResult struct.

public readonly ReadOnlySpan<ShapedGlyph> Glyphs

The shaped glyphs with positioning information.

public readonly float TotalAdvance

The total horizontal advance of all glyphs.