From f327aacfa107bbef0c823ef9c3b7dfc91316040c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 Jul 2015 11:32:59 +0100 Subject: [PATCH] [ot] Minor --- src/hb-ot-shape.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 993497a..00a2121 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -59,10 +59,6 @@ static hb_tag_t horizontal_features[] = { HB_TAG('r','c','l','t'), }; -static hb_tag_t vertical_features[] = { - HB_TAG('v','e','r','t'), -}; - static void @@ -105,10 +101,9 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner, (horizontal_features[i] == HB_TAG('k','e','r','n') ? F_HAS_FALLBACK : F_NONE)); else - for (unsigned int i = 0; i < ARRAY_LENGTH (vertical_features); i++) - map->add_feature (vertical_features[i], 1, F_GLOBAL | - (vertical_features[i] == HB_TAG('v','k','r','n') ? - F_HAS_FALLBACK : F_NONE)); + { + map->add_global_bool_feature (HB_TAG('v','e','r','t')); + } if (planner->shaper->override_features) planner->shaper->override_features (planner); -- 2.7.4