Enable two OpenType features, 'Harf' and 'Buzz'

One early, before script-specific features, one late, after.  Allows font
developers to detect us and behave differently if needed.
This commit is contained in:
Behdad Esfahbod 2018-10-04 13:00:37 +02:00
parent 55468ca01b
commit a01194aaf4
1 changed files with 4 additions and 0 deletions

View File

@ -132,9 +132,13 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
/* Random! */
map->enable_feature (HB_TAG ('r','a','n','d'), F_RANDOM, HB_OT_MAP_MAX_VALUE);
map->enable_feature (HB_TAG('H','a','r','f'));
if (planner->shaper->collect_features)
planner->shaper->collect_features (planner);
map->enable_feature (HB_TAG('B','u','z','z'));
for (unsigned int i = 0; i < ARRAY_LENGTH (common_features); i++)
map->add_feature (common_features[i]);