Skip to main content

TextShaperOptions Struct

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Options to customize text shaping.

public struct TextShaperOptions

Inheritance: ValueType -> TextShaperOptions

Implements: IEquatable<TextShaperOptions>

Constructors​

NameDescription
TextShaperOptionsNo summary available.

TextShaperOptions Constructor​

public TextShaperOptions(Avalonia.Media.GlyphTypeface typeface, double fontRenderingEmSize, sbyte bidiLevel, System.Globalization.CultureInfo culture, double incrementalTabWidth, double letterSpacing, System.Collections.Generic.IReadOnlyList<Avalonia.Media.FontFeature> fontFeatures)

Parameters​

typeface Avalonia.Media.GlyphTypeface

fontRenderingEmSize double

bidiLevel sbyte

culture System.Globalization.CultureInfo

incrementalTabWidth double

letterSpacing double

fontFeatures System.Collections.Generic.IReadOnlyList<Avalonia.Media.FontFeature>

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.TextFormatting.TextShaperOptions other)
Parameters​

other Avalonia.Media.TextFormatting.TextShaperOptions

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
BidiLevelGet the bidi level of the text.
CultureGet the culture.
FontFeaturesGet features.
FontRenderingEmSizeGet the font rendering em size.
GlyphTypefaceGet the typeface.
IncrementalTabWidthGet the incremental tab width.
LetterSpacingGet the letter spacing.

BidiLevel Property​

Get the bidi level of the text.

public sbyte BidiLevel { get; set; }

Culture Property​

Get the culture.

public System.Globalization.CultureInfo Culture { get; set; }

FontFeatures Property​

Get features.

public System.Collections.Generic.IReadOnlyList<Avalonia.Media.FontFeature> FontFeatures { get; set; }

FontRenderingEmSize Property​

Get the font rendering em size.

public double FontRenderingEmSize { get; set; }

GlyphTypeface Property​

Get the typeface.

public Avalonia.Media.GlyphTypeface GlyphTypeface { get; set; }

IncrementalTabWidth Property​

Get the incremental tab width.

public double IncrementalTabWidth { get; set; }

LetterSpacing Property​

Get the letter spacing.

public double LetterSpacing { get; set; }