text_fonts

module pkg::alloy::text::shaping::contextsource

Contextual lookups, GSUB's 5 and 6 and GPOS's 7 and 8: a sequence of glyphs matched by glyph, class or coverage, with what comes before and after it, then other lookups applied at positions within it.

fn apply_contextsource

exp fn apply_context(
    c: &var Apply,
    buffer: &var Buffer,
    at: u64,
    chained: bool,
    nested: (&var Apply, &var Buffer, u32) -> bool
) -> bool

Applies the contextual subtable at at (of either table, chained for a chained one) at the current glyph, nested applying the lookups its rule names: whether a rule matched.