pub type FontVariationSettings = FontSettings<VariationValue<Number>>;
Expand description

The computed value for font-variation-settings.

Aliased Type§

struct FontVariationSettings(pub Box<[VariationValue<f32>]>);

Fields§

§0: Box<[VariationValue<f32>]>

Trait Implementations§

source§

impl Animate for FontVariationSettings

https://drafts.csswg.org/css-fonts-4/#font-variation-settings-def

Note that the ComputedValue implementation will already have sorted and de-dup’d the lists of settings, so we can just iterate over the two lists together and animate their individual values.

source§

fn animate(&self, other: &Self, procedure: Procedure) -> Result<Self, ()>

Animate a value towards another one, given an animation procedure.
source§

impl ComputeSquaredDistance for FontVariationSettings

source§

fn compute_squared_distance(&self, other: &Self) -> Result<SquaredDistance, ()>

Computes the squared distance between two animatable values.
source§

impl ToAnimatedZero for FontVariationSettings

source§

fn to_animated_zero(&self) -> Result<Self, ()>

Returns a value that, when added with an underlying value, will produce the underlying value. This is used for SMIL animation’s “by-animation” where SMIL first interpolates from the zero value to the ‘by’ value, and then adds the result to the underlying value. Read more