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
IGlyphTypefacefontFeatures
IReadOnlyList<FontFeature>fontRenderingEmSize
doublebidiLevel
sbyteculture
CultureInfoincrementalTabWidth
doubleletterSpacing
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
IGlyphTypefacefontRenderingEmSize
doublebidiLevel
sbyteculture
CultureInfoincrementalTabWidth
doubleletterSpacing
double
Properties
BidiLevel
Get the bidi level of the text.
public sbyte BidiLevel { get; }
Property Value
Culture
Get the culture.
public CultureInfo? Culture { get; }
Property Value
FontFeatures
Get features.
public IReadOnlyList<FontFeature>? FontFeatures { get; }
Property Value
FontRenderingEmSize
Get the font rendering em size.
public double FontRenderingEmSize { get; }
Property Value
IncrementalTabWidth
Get the incremental tab width.
public double IncrementalTabWidth { get; }
Property Value
LetterSpacing
Get the letter spacing.
public double LetterSpacing { get; }
Property Value
Typeface
Get the typeface.
public IGlyphTypeface Typeface { get; }
Property Value
Methods
Equals(TextShaperOptions)
public bool Equals(TextShaperOptions other)
Parameters
other
TextShaperOptions
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(TextShaperOptions, TextShaperOptions)
public static bool operator ==(TextShaperOptions left, TextShaperOptions right)
Parameters
left
TextShaperOptionsright
TextShaperOptions
Returns
operator !=(TextShaperOptions, TextShaperOptions)
public static bool operator !=(TextShaperOptions left, TextShaperOptions right)
Parameters
left
TextShaperOptionsright
TextShaperOptions