TextShaperShapeText(ReadOnlyMemoryChar, TextShaperOptions) Method
Shapes the specified region within the text and returns a shaped buffer.
Namespace: Avalonia.Media.TextFormattingAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public ShapedBuffer ShapeText(
ReadOnlyMemory<char> text,
TextShaperOptions options = default
)
Public Function ShapeText (
text As ReadOnlyMemory(Of Char),
Optional options As TextShaperOptions = Nothing
) As ShapedBuffer
member ShapeText :
text : ReadOnlyMemory<char> *
?options : TextShaperOptions
(* Defaults:
let _options = defaultArg options new TextShaperOptions()
*)
-> ShapedBuffer
- text ReadOnlyMemoryChar
- The text buffer.
- options TextShaperOptions (Optional)
- Text shaper options to customize the shaping process.
ShapedBufferA shaped glyph run.