OpenTypeFeature class final
An OpenType feature setting: a four-character tag and its value
(1 on, 0 off, n an alternate). JSON is a string, "lnum" or "liga=0".
- Annotations
-
- @immutable
Constructors
- OpenTypeFeature(String tag, [int value = 1])
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
As stored:
"lnum"when on, else"liga=0".override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
resolve(
Iterable< String> entries) → List<OpenTypeFeature> - The settings a style's TextStyle.fontFeatures list holds, one per tag (the last wins), in order of first appearance.
-
tryParse(
Object? entry) → OpenTypeFeature? -
One setting from
"lnum","liga = 0"or{"tag": "liga", "value": 0}(true/falseare 1/0), or null when it isn't one.