/// <summary>Use this to build all font-variant features.</summary> public static List <OpenTypeFeature> GetAllFeatures(TextRenderingProperty trp) { // Feature set: List <OpenTypeFeature> features = new List <OpenTypeFeature>(); // Get the cs: ComputedStyle cs = trp.RenderData.computedStyle; // Load each variant property into features: FontVariantCaps.LoadInto(trp, features, cs); FontVariantAlternates.LoadInto(trp, features, cs); FontVariantEastAsian.LoadInto(trp, features, cs); FontVariantLigatures.LoadInto(trp, features, cs); FontVariantNumeric.LoadInto(trp, features, cs); FontVariantPosition.LoadInto(trp, features, cs); FontFeatureSettings.LoadInto(trp, features, cs); return(features); }
public FontVariantPosition() { IsTextual = true; GlobalProperty = this; RelativeTo = ValueRelativity.FontSize; }