Skip to main content

effective_variations

Function effective_variations 

Source
fn effective_variations(
    cache: &mut Cache,
    span: &Span,
    glyph: &PositionedGlyph,
) -> Vec<FontVariation>
Expand description

Returns the effective variation settings for a glyph: the span’s explicit variations plus an automatically computed opsz value when font-optical-sizing: auto is in effect and the font has an opsz axis that wasn’t set explicitly. This matches browser behavior (CSS font-optical-sizing: auto).