draw

module pkg::alloy::text::shaping::gsubsource

Glyph substitution (GSUB): single, multiple, alternate, ligature, contextual, chained contextual and reverse chained lookups, through extensions, applied as HarfBuzz applies them.

fn substitute_lookupsource

exp fn substitute_lookup(c: &var Apply, buffer: &var Buffer, index: u32)

Applies the lookup to every glyph its mask selects, from the first (a reverse chained one from the last).

fn substitute_made_lookupsource

exp fn substitute_made_lookup(c: &var Apply, buffer: &var Buffer, at: u64)

Applies the lookup at at in c.data (not the face's: one made while shaping, as Arabic's fallback makes) to every glyph its mask selects.

fn would_substitutesource

exp fn would_substitute(face: &Face, index: u32, glyphs: &[u32], zero_context: bool) -> bool

Whether the lookup would substitute the glyphs, in sequence with nothing around them (HarfBuzz's would_apply, for the Indic shaper's questions to a face).