summaryrefslogtreecommitdiff
path: root/pango/pango-ot-info.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-12 16:34:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-12 16:34:09 -0400
commit090398e8c473e755cbd8da9269739a20e2f1e4af (patch)
tree9b52727c4f908375cd059375c055009839b1b55b /pango/pango-ot-info.c
parenta3bfcb096338c5b88da9ad2eb2cde820ddb0958f (diff)
downloadpango-090398e8c473e755cbd8da9269739a20e2f1e4af.tar.gz
ot: Avoid deprecated harfbuzz api
Don't use deprecated api to implement deprecated api!
Diffstat (limited to 'pango/pango-ot-info.c')
-rw-r--r--pango/pango-ot-info.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c
index 6116bf3f..30dc0bb9 100644
--- a/pango/pango-ot-info.c
+++ b/pango/pango-ot-info.c
@@ -187,10 +187,12 @@ pango_ot_info_find_language (PangoOTInfo *info,
unsigned l_index;
hb_tag_t tt = get_hb_table_type (table_type);
- ret = hb_ot_layout_script_find_language (info->hb_face, tt,
- script_index,
- language_tag,
- &l_index);
+ ret = hb_ot_layout_script_select_language (info->hb_face,
+ table_type,
+ script_index,
+ 1,
+ &language_tag,
+ language_index);
if (language_index) *language_index = l_index;
hb_ot_layout_language_get_required_feature_index (info->hb_face, tt,