Skip to main content

FontVariationSettings

Type Alias FontVariationSettings 

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

This property provides low-level control over OpenType or TrueType font variations.

Aliased Type§

#[repr(transparent)]
pub struct FontVariationSettings(pub ThinVec<VariationValue<Number>>);

Tuple Fields§

§0: ThinVec<VariationValue<Number>>

Implementations§

Source§

impl FontVariationSettings

Source

pub fn parse_for_font_face_rule( context: &ParserContext<'_>, input: &mut Parser<'_>, ) -> Result<Self, ParseError>

Like parse, but rejects calc expressions that cannot be resolved at parse time, since @font-face descriptors require concrete values.