Function

HarfBuzz-0.0HarfBuzzot_layout_lookup_would_substituteSince 0.9.7

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

    Parameters

    • face: face_t

      HarfBuzz.face_t to work upon

    • lookup_index: number

      The index of the lookup to query

    • glyphs: number

      The sequence of glyphs to query for substitution

    • glyphs_length: number

      The length of the glyph sequence

    • zero_context: number

      HarfBuzz.bool_t indicating whether pre-/post-context are disallowed in substitutions

    Returns number

    true if a substitution would be triggered, false otherwise

    0.9.7