[OTLayout] Handle required_feature_index in collect_lookups

This commit is contained in:
Behdad Esfahbod 2013-01-02 23:57:36 -06:00
parent 11fba79ee9
commit d37ae38047
1 changed files with 8 additions and 0 deletions

View File

@ -433,6 +433,14 @@ _hb_ot_layout_collect_lookups_features (hb_face_t *face,
const hb_tag_t *features, const hb_tag_t *features,
hb_set_t *lookup_indexes /* OUT */) hb_set_t *lookup_indexes /* OUT */)
{ {
unsigned int required_feature_index;
if (hb_ot_layout_language_get_required_feature_index (face,
table_tag,
script_index,
language_index,
&required_feature_index))
_hb_ot_layout_collect_lookups_lookups (face, table_tag, required_feature_index, lookup_indexes);
if (!features) if (!features)
{ {
/* All features */ /* All features */