One OpenType feature applied to a text run. name is an OpenType
feature tag ("smcp", "liga", "onum", "tnum", "ss01", "zero", ...);
value is the feature selector -- 1/0 to enable/disable, or an
index for features with multiple alternates. Defaults to 1 (enable)
when omitted. Mirrors CanvasKit's TextFontFeatures.
🧪 Not in the HTML Canvas standard.
interfaceTextFontFeatures{ Â Â Â Â name:string; Â Â Â Â value?:number; }
One OpenType feature applied to a text run.
nameis an OpenType feature tag ("smcp", "liga", "onum", "tnum", "ss01", "zero", ...);valueis the feature selector --1/0to enable/disable, or an index for features with multiple alternates. Defaults to1(enable) when omitted. Mirrors CanvasKit'sTextFontFeatures.🧪 Not in the HTML Canvas standard.