otLayoutTableSelectScript

Selects an OpenType script for table_tag from the script_tags array.

If the table does not have any of the requested scripts, then DFLT, dflt, and latn tags are tried in that order. If the table still does not have any of these scripts, script_index is set to #HB_OT_LAYOUT_NO_SCRIPT_INDEX and chosen_script 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

scriptTags harfbuzz.types.Tag[]

Array of #hb_tag_t script tags

scriptIndex uint

The index of the requested script

chosenScript harfbuzz.types.Tag

#hb_tag_t of the requested script

Return Value

Type: harfbuzz.types.Bool

true if one of the requested scripts is selected, false if a fallback script is selected or if no scripts are selected.