[]
Identifies the typographic feature in the OpenType font.
public class FontFeature
Initializes a new instance of FontFeature with a value indicating whether the feature is enable or disabled.
public FontFeature(FeatureTag featureTag, bool enabled)
featureTag
FeatureTagenabled
boolInitializes a new instance of FontFeature with the specified 1-based position of alternate glyph ID.
public FontFeature(FeatureTag featureTag, int parameter, bool applyLastAlternativeIfNotAvailable = true)
featureTag
FeatureTagparameter
intapplyLastAlternativeIfNotAvailable
boolInitializes a new instance of FontFeature, enabled by default.
public FontFeature(FeatureTag featureTag)
featureTag
FeatureTagIndicates whether the last alternative should be applied if the specified position exceeds the number of alternatives.
public bool ApplyLastAlternativeIfNotAvailable { get; set; }
Gets or sets a value indicating whether the feature should be enabled.
public bool Enabled { get; set; }
The OpenType name identifier of the feature.
public FeatureTag FeatureTag { get; set; }
Specifies 1-based position of the alternate glyph ID in Alternate Substitution lookup.
public int Parameter { get; set; }