otLayoutScriptSelectLanguage2

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 harfbuzz.face.Face

#hb_face_t to work upon

tableTag harfbuzz.types.Tag

#HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS

scriptIndex uint

The index of the requested script tag

languageTags harfbuzz.types.Tag[]

The array of language tags

languageIndex uint

The index of the chosen language

chosenLanguage harfbuzz.types.Tag

#hb_tag_t of the chosen language

Return Value

Type: harfbuzz.types.Bool

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