Skip to main content

compute_used_font_features

Function compute_used_font_features 

Source
fn compute_used_font_features(
    options: &ShapingOptions,
    font_face_rule: Option<&FontFaceRule>,
) -> impl Iterator<Item = (Tag, u32)>
Expand description

Determine which OpenType features are applied for the font.

The order of precedence for resolving font-specific font feature properties is specified in https://drafts.csswg.org/css-fonts-4/#apply-font-matching-variations.