From 8af45fda475d075c5a285002463a00a0423d3926 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 May 2010 20:41:20 -0400 Subject: [PATCH] Fix global feature handling --- src/hb-ot-shape.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index a3cb89bce..87cdf4775 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -168,8 +168,12 @@ struct hb_mask_allocator_t { if (infos[i].tag != infos[j].tag) infos[++j] = infos[i]; else { - if (!infos[j].global) + if (infos[i].global) + infos[j] = infos[i]; + else { + infos[j].global = infos[j].global && (infos[j].value == infos[i].value); infos[j].value = MAX (infos[j].value, infos[i].value); + } } count = j + 1;