otLayoutScriptSelectLanguage

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

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 the default language index.

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 requested language

Returns

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