Skip to main content

ShapeText(ReadOnlyMemory<Char>, 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)

public ShapedBuffer ShapeText(
ReadOnlyMemory<char> text,
TextShaperOptions options = default
)

Parameters

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

Return Value

ShapedBuffer
A shaped glyph run.

See Also

Reference

TextShaper Class
ShapeText Overload
Avalonia.Media.TextFormatting Namespace