Function

HarfBuzz-0.0HarfBuzzot_layout_script_select_language2Since 7.0.0

  • Fetches the index of the first language tag fom language_tags that is present in the specified face's GSUB or GPOS table, underneath the specified script index.

    If none of the given language tags is found, false is returned and language_index is set to #HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX and chosen_language is set to #HB_TAG_NONE.

    Parameters

    • face: face_t

      HarfBuzz.face_t to work upon

    • table_tag: number

      #HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS

    • script_index: number

      The index of the requested script tag

    • language_count: number

      The number of languages in the specified script

    • language_tags: number

      The array of language tags

    Returns [number, number, number]

    true if one of the given language tags is found, false otherwise

    7.0.0