Skip to main content

FontFeature Class

Definition​

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Font feature

public class FontFeature

Inheritance: object -> FontFeature

Implements: IEquatable<FontFeature>

Constructors​

NameDescription
FontFeatureCreates an instance of FontFeature.

FontFeature Constructor​

Creates an instance of FontFeature.

public FontFeature()

Methods​

NameDescription
<Clone>$No summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ParseParses a string to return a Avalonia.Media.FontFeature. Syntax is the following:
ToStringGets a string representation of the Avalonia.Media.FontFeature.

<Clone>$ Method​

public Avalonia.Media.FontFeature <Clone>$()

Returns​

Avalonia.Media.FontFeature

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.FontFeature other)
Parameters​

other Avalonia.Media.FontFeature

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

Parse Method​

Parses a string to return a Avalonia.Media.FontFeature. Syntax is the following:

Syntax Value Start End Setting value: kern 1 0 ∞ Turn feature on +kern 1 0 ∞ Turn feature on -kern 0 0 ∞ Turn feature off kern=0 0 0 ∞ Turn feature off kern=1 1 0 ∞ Turn feature on aalt=2 2 0 ∞ Choose 2nd alternate Setting index: kern[] 1 0 ∞ Turn feature on kern[:] 1 0 ∞ Turn feature on kern[5:] 1 5 ∞ Turn feature on, partial kern[:5] 1 0 5 Turn feature on, partial kern[3:5] 1 3 5 Turn feature on, range kern[3] 1 3 3+1 Turn feature on, single char Mixing it all: aalt[3:5]=2 2 3 5 Turn 2nd alternate on for range

public Avalonia.Media.FontFeature Parse(string s)

Parameters​

s string

The string.

Returns​

Avalonia.Media.FontFeature

The Avalonia.Media.FontFeature.

ToString Method​

Gets a string representation of the Avalonia.Media.FontFeature.

public string ToString()

Returns​

string

The string representation.

Properties​

NameDescription
EndGets or sets the end.
StartGets or sets the start.
TagGets or sets the tag.
ValueGets or sets the value.

End Property​

Gets or sets the end.

public int End { get; set; }

Start Property​

Gets or sets the start.

public int Start { get; set; }

Tag Property​

Gets or sets the tag.

public string Tag { get; set; }

Value Property​

Gets or sets the value.

public int Value { get; set; }