FontAxisRange class final
One variation axis of a bundled variable font: [min, max], default.
- Annotations
Constructors
- FontAxisRange(String tag, double min, double defaultValue, double max)
-
Creates an axis range.
const
Properties
- defaultValue → double
-
Value of the font's default instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → double
-
Largest supported value.
final
- min → double
-
Smallest supported value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
OpenType axis tag, e.g.
wght.final
Methods
-
clamp(
double value) → double -
valueclamped into[min, max]. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
variation(
double value) → FontVariation -
A FontVariation for
value, clamped into range.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited