otLayoutLookupWouldSubstitute

fnharfbuzz.types.Bool otLayoutLookupWouldSubstitute(harfbuzz.face.Face face, uint lookupIndex, harfbuzz.types.Codepoint[] glyphs, harfbuzz.types.Bool zeroContext)

Tests whether a specified lookup in the specified face would trigger a substitution on the given glyph sequence.

Parameters

face#hb_face_t to work upon
lookupIndexThe index of the lookup to query
glyphsThe sequence of glyphs to query for substitution
zeroContext#hb_bool_t indicating whether pre-/post-context are disallowed in substitutions

Returns

true if a substitution would be triggered, false otherwise