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)
- C#
- VB
- F#
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
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