Don't zero glyph advances in MarkToBase and similar lookups

See email thread "Should MarkToBase attachment zero the mark advance?"
started by Jonathan Kew on 23 August 2010 for details.
pull/1/head
Behdad Esfahbod 15 years ago
parent 36b3862009
commit 2841436926
  1. 2
      src/hb-ot-layout-gpos-private.hh

@ -402,8 +402,6 @@ struct MarkArray : ArrayOf<MarkRecord> /* Array of MarkRecords--in Coverage orde
glyph_anchor.get_anchor (c->layout, c->buffer->info[glyph_pos].codepoint, &base_x, &base_y);
hb_internal_glyph_position_t &o = c->buffer->pos[c->buffer->i];
o.x_advance = 0;
o.y_advance = 0;
o.x_offset = base_x - mark_x;
o.y_offset = base_y - mark_y;
o.back = c->buffer->i - glyph_pos;

Loading…
Cancel
Save