Skip to main content

prematch

Function prematch 

Source
fn prematch(
    ctx: &mut ApplyContext<'_, '_, '_>,
    has_rules: bool,
    digest: Option<RuleSetDigest>,
    first_value: &impl Fn(&mut GlyphInfo) -> u32,
) -> Option<Prematch>
Expand description

Finds the glyphs that rules are pre-matched against. The context iterator, unlike the input one, doesn’t skip default ignorables. https://github.com/harfbuzz/harfbuzz/issues/4813