From 911ca38645bd51764e7859bc482319e8f6d2f710 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 24 Jun 2014 10:20:36 -0600 Subject: [PATCH] Add back API removed recently Add hb_ot_layout_language_get_required_feature_index() again, which is used in Pango. This was removed in da132937989acb4d8ca9bd41c79f98750e7dda30 in favor of hb_ot_layout_language_get_required_feature(). API changes: - Added hb_ot_layout_language_get_required_feature_index back. --- src/hb-ot-layout.cc | 15 +++++++++++++++ src/hb-ot-layout.h | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index e414ddc38..661d90ea0 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -320,6 +320,21 @@ hb_ot_layout_script_find_language (hb_face_t *face, return false; } +hb_bool_t +hb_ot_layout_language_get_required_feature_index (hb_face_t *face, + hb_tag_t table_tag, + unsigned int script_index, + unsigned int language_index, + unsigned int *feature_index) +{ + return hb_ot_layout_language_get_required_feature (face, + table_tag, + script_index, + language_index, + feature_index, + NULL); +} + hb_bool_t hb_ot_layout_language_get_required_feature (hb_face_t *face, hb_tag_t table_tag, diff --git a/src/hb-ot-layout.h b/src/hb-ot-layout.h index 32ce76262..87171d753 100644 --- a/src/hb-ot-layout.h +++ b/src/hb-ot-layout.h @@ -139,6 +139,13 @@ hb_ot_layout_script_find_language (hb_face_t *face, hb_tag_t language_tag, unsigned int *language_index); +hb_bool_t +hb_ot_layout_language_get_required_feature_index (hb_face_t *face, + hb_tag_t table_tag, + unsigned int script_index, + unsigned int language_index, + unsigned int *feature_index); + hb_bool_t hb_ot_layout_language_get_required_feature (hb_face_t *face, hb_tag_t table_tag,