Fix global feature handling

pull/1/head
Behdad Esfahbod 15 years ago
parent e04685ee7b
commit 8af45fda47
  1. 6
      src/hb-ot-shape.cc

@ -168,9 +168,13 @@ 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;
/* Allocate bits now */

Loading…
Cancel
Save