ot_layout_table_select_script


Description:


[ Version ( since = "2.0.0" ) ]
public Bool ot_layout_table_select_script (Face face, Tag table_tag, uint script_count, Tag script_tags, out uint script_index, out Tag chosen_script)

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 OT_LAYOUT_NO_SCRIPT_INDEX and chosen_script is set to HB_TAG_NONE.

Parameters:

face

Face to work upon

table_tag

HB_OT_TAG_GSUB or HB_OT_TAG_GPOS

script_count

Number of script tags in the array

script_tags

Array of Tag script tags

script_index

The index of the requested script

chosen_script

Tag of the requested script

Returns:

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


Namespace: HarfBuzz