[layout] Fix return value of chosen_script when matching fails

This commit is contained in:
Behdad Esfahbod 2023-01-20 09:09:14 -07:00
parent d06976e68f
commit 2fd8e36ea5
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ hb_ot_layout_table_select_script (hb_face_t *face,
if (script_index) *script_index = HB_OT_LAYOUT_NO_SCRIPT_INDEX;
if (chosen_script)
*chosen_script = HB_OT_LAYOUT_NO_SCRIPT_INDEX;
*chosen_script = HB_TAG_NONE;
return false;
}