Skip to main content

TextShaper Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

A class that is responsible for text shaping.

public class TextShaper

Inheritance: object -> TextShaper

Constructors

NameDescription
TextShaperNo summary available.

TextShaper Constructor

public TextShaper(Avalonia.Platform.ITextShaperImpl platformImpl)

Parameters

platformImpl Avalonia.Platform.ITextShaperImpl

Methods

NameDescription
ShapeText (2 overloads)No summary available.

ShapeText overloads

ShapeText Method

public Avalonia.Media.TextFormatting.ShapedBuffer ShapeText(ReadOnlyMemory<char> text, Avalonia.Media.TextFormatting.TextShaperOptions options)
Parameters

text ReadOnlyMemory<char>

options Avalonia.Media.TextFormatting.TextShaperOptions

Returns

Avalonia.Media.TextFormatting.ShapedBuffer

ShapeText Method

public Avalonia.Media.TextFormatting.ShapedBuffer ShapeText(string text, Avalonia.Media.TextFormatting.TextShaperOptions options)
Parameters

text string

options Avalonia.Media.TextFormatting.TextShaperOptions

Returns

Avalonia.Media.TextFormatting.ShapedBuffer

Properties

NameDescription
CurrentGets the current text shaper.

Current Property

Gets the current text shaper.

public Avalonia.Media.TextFormatting.TextShaper Current { get; set; }