Apply user features

No ranges yet
This commit is contained in:
Behdad Esfahbod 2010-05-20 13:40:18 +01:00
parent 0db299ccad
commit 7f411dbfd9
1 changed files with 8 additions and 0 deletions

View File

@ -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)