Table of Contents

Struct TextShaperOptions

Namespace
Avalonia.Media.TextFormatting
Assembly
Avalonia.Base.dll

Options to customize text shaping.

public readonly struct TextShaperOptions : IEquatable<TextShaperOptions>
Implements
Inherited Members

Constructors

TextShaperOptions(IGlyphTypeface, IReadOnlyList<FontFeature>?, double, sbyte, CultureInfo?, double, double)

public TextShaperOptions(IGlyphTypeface typeface, IReadOnlyList<FontFeature>? fontFeatures, double fontRenderingEmSize = 12, sbyte bidiLevel = 0, CultureInfo? culture = null, double incrementalTabWidth = 0, double letterSpacing = 0)

Parameters

typeface IGlyphTypeface
fontFeatures IReadOnlyList<FontFeature>
fontRenderingEmSize double
bidiLevel sbyte
culture CultureInfo
incrementalTabWidth double
letterSpacing double

TextShaperOptions(IGlyphTypeface, double, sbyte, CultureInfo?, double, double)

public TextShaperOptions(IGlyphTypeface typeface, double fontRenderingEmSize = 12, sbyte bidiLevel = 0, CultureInfo? culture = null, double incrementalTabWidth = 0, double letterSpacing = 0)

Parameters

typeface IGlyphTypeface
fontRenderingEmSize double
bidiLevel sbyte
culture CultureInfo
incrementalTabWidth double
letterSpacing double

Properties

BidiLevel

Get the bidi level of the text.

public sbyte BidiLevel { get; }

Property Value

sbyte

Culture

Get the culture.

public CultureInfo? Culture { get; }

Property Value

CultureInfo

FontFeatures

Get features.

public IReadOnlyList<FontFeature>? FontFeatures { get; }

Property Value

IReadOnlyList<FontFeature>

FontRenderingEmSize

Get the font rendering em size.

public double FontRenderingEmSize { get; }

Property Value

double

IncrementalTabWidth

Get the incremental tab width.

public double IncrementalTabWidth { get; }

Property Value

double

LetterSpacing

Get the letter spacing.

public double LetterSpacing { get; }

Property Value

double

Typeface

Get the typeface.

public IGlyphTypeface Typeface { get; }

Property Value

IGlyphTypeface

Methods

Equals(TextShaperOptions)

public bool Equals(TextShaperOptions other)

Parameters

other TextShaperOptions

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TextShaperOptions, TextShaperOptions)

public static bool operator ==(TextShaperOptions left, TextShaperOptions right)

Parameters

left TextShaperOptions
right TextShaperOptions

Returns

bool

operator !=(TextShaperOptions, TextShaperOptions)

public static bool operator !=(TextShaperOptions left, TextShaperOptions right)

Parameters

left TextShaperOptions
right TextShaperOptions

Returns

bool