TextShaperShapeText(ReadOnlyMemoryChar, TextShaperOptions) Method

Shapes the specified region within the text and returns a shaped buffer.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public ShapedBuffer ShapeText(
	ReadOnlyMemory<char> text,
	TextShaperOptions options = default
)

Parameters

text  ReadOnlyMemoryChar
The text buffer.
options  TextShaperOptions  (Optional)
Text shaper options to customize the shaping process.

Return Value

ShapedBuffer
A shaped glyph run.

See Also