ShaperRef.shape

Result!(ShapeResult, TextError) shape(in TextRun run, scope ShapedGlyph[] outBuf) @safe nothrow @nogc

Shapes one run into a caller buffer.

Parameters

runthe text run (logical order).
outBufcaller buffer for the shaped glyphs.

Returns

Result!(ShapeResult, TextError): {required, written} with

the capacity protocol above; empty runs succeed with zero counts, INVALID_INPUT is for contradictory runs, UNSUPPORTED for a direction/script the implementor cannot shape, backend failures as errors — never as a zero count.