Remove use of deprecated function
This commit is contained in:
parent
66790d64c7
commit
cf975ac653
|
@ -486,7 +486,7 @@ hb_ot_layout_script_select_language (hb_face_t *face,
|
|||
hb_tag_t table_tag,
|
||||
unsigned int script_index,
|
||||
unsigned int language_count,
|
||||
hb_tag_t *language_tags,
|
||||
const hb_tag_t *language_tags,
|
||||
unsigned int *language_index /* OUT */)
|
||||
{
|
||||
static_assert ((OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX), "");
|
||||
|
@ -772,10 +772,11 @@ _hb_ot_layout_collect_features_languages (hb_face_t *face,
|
|||
for (; *languages; languages++)
|
||||
{
|
||||
unsigned int language_index;
|
||||
if (hb_ot_layout_script_find_language (face,
|
||||
if (hb_ot_layout_script_select_language (face,
|
||||
table_tag,
|
||||
script_index,
|
||||
*languages,
|
||||
1,
|
||||
languages,
|
||||
&language_index))
|
||||
_hb_ot_layout_collect_features_features (face,
|
||||
table_tag,
|
||||
|
|
|
@ -139,7 +139,7 @@ hb_ot_layout_script_select_language (hb_face_t *face,
|
|||
hb_tag_t table_tag,
|
||||
unsigned int script_index,
|
||||
unsigned int language_count,
|
||||
hb_tag_t *language_tags,
|
||||
const hb_tag_t *language_tags,
|
||||
unsigned int *language_index /* OUT */);
|
||||
|
||||
HB_EXTERN hb_bool_t
|
||||
|
|
Loading…
Reference in New Issue