otLayoutScriptSelectLanguage2

fnharfbuzz.types.Bool otLayoutScriptSelectLanguage2(harfbuzz.face.Face face, harfbuzz.types.Tag tableTag, uint scriptIndex, harfbuzz.types.Tag[] languageTags, out uint languageIndex, out harfbuzz.types.Tag chosenLanguage)

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#hb_face_t to work upon
tableTag#HB_OT_TAG_GSUB or #HB_OT_TAG_GPOS
scriptIndexThe index of the requested script tag
languageTagsThe array of language tags
languageIndexThe index of the chosen language
chosenLanguage#hb_tag_t of the chosen language

Returns

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