ShaperRef.create

Status!TextError create(out S shaper, ref FontT font) static @safe nothrow;

Creates a shaper over a font.

Parameters

shaperfresh .init storage for the created shaper. Explicitly destroy an old value before reuse; out is not cleanup.
fontthe font, which must outlive the shaper.

Returns

Status!TextError: BAD_FONT when the font's tables cannot

be used, ALLOCATION_FAILED on native allocation failure.