From: Behdad Esfahbod Date: Thu, 20 May 2010 12:40:18 +0000 (+0100) Subject: Apply user features X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f411dbfd9f8d5360c948531ff9f6c3998d1d897;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Apply user features No ranges yet --- diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 61f67cd..801d0a3 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -100,6 +100,14 @@ setup_lookups (hb_face_t *face, add_feature (face, table_tag, feature_index, lookups, num_lookups, room_lookups); } + for (i = 0; i < num_features; i++) + { + if (hb_ot_layout_language_find_feature (face, table_tag, script_index, language_index, + features[i].tag, + &feature_index)) + add_feature (face, table_tag, feature_index, lookups, num_lookups, room_lookups); + } + qsort (lookups, *num_lookups, sizeof (lookups[0]), cmp_lookups); if (*num_lookups)