Back to API Reference
Struct

FontFeature

sealed

One OpenType feature setting: a four-character feature tag and the value shaping applies it with.

Remarks

A font that does not carry the tag ignores it. Value 0 disables a feature the shaper would otherwise apply by default, such as kern or liga.
public uint Tag{ get }

Packed four-character OpenType tag, first character in the most significant byte.

public uint Value{ get }

Applied value: 0 disables the feature, 1 enables it, higher values select an alternate the feature defines.

[ctor]public FontFeature(string tag, int value)

Creates a setting for a one-to-four character OpenType tag, space-padded to four as the specification requires.

public static bool TryParse()

Parses one setting written as tag, tag value, -tag or +tag, where the tag may be quoted and the value may follow a space, colon or equals sign. A bare tag reads as 1, a minus-prefixed tag as 0.

public bool Equals()
public override bool Equals()
public override int GetHashCode()
public override string ToString()