[Indic] Apply presentation-forms features all at once

Seems like this is what Uniscribe is doing, and does not break any fonts
we tested (with Devanagari, Malayalam, Khmer, and Bengali), while fixing
some Ra Phala sequences for Bengali with Vrinda.  Fixes another 2% of
Bengali failures (a couple more to go).
This commit is contained in:
Behdad Esfahbod 2012-07-17 10:40:59 -04:00
parent 559f706678
commit d5c4edcdd6
2 changed files with 4 additions and 3 deletions

View File

@ -135,6 +135,7 @@ struct feature_list_t {
hb_bool_t is_global;
};
/* These features are applied one at a time, given the order in this table. */
static const feature_list_t
indic_basic_features[] =
{
@ -166,6 +167,7 @@ enum {
VATU
};
/* These features are applied all at once. */
static const feature_list_t
indic_other_features[] =
{
@ -211,10 +213,8 @@ _hb_ot_shape_complex_collect_features_indic (hb_ot_map_builder_t *map,
map->add_gsub_pause (final_reordering, NULL);
for (unsigned int i = 0; i < ARRAY_LENGTH (indic_other_features); i++) {
for (unsigned int i = 0; i < ARRAY_LENGTH (indic_other_features); i++)
map->add_bool_feature (indic_other_features[i].tag, indic_other_features[i].is_global);
map->add_gsub_pause (NULL, NULL);
}
}
void

View File

@ -47,3 +47,4 @@
ৰ্ভ
ৱ্ভ
অৗ
ন্ত্র