(ft_drive_otf): Don't accumulate anchor adjustments.
authorhanda <handa>
Sat, 7 Nov 2009 02:19:07 +0000 (02:19 +0000)
committerhanda <handa>
Sat, 7 Nov 2009 02:19:07 +0000 (02:19 +0000)
src/font-ft.c

index 8f0cf57..692713e 100644 (file)
@@ -2443,8 +2443,8 @@ ft_drive_otf (MFLTFont *font, MFLTOtfSpec *spec,
                if (otfg->f.f4.mark_anchor->AnchorFormat != 1)
                  adjust_anchor (otfg->f.f4.mark_anchor, face, g->g.code,
                                 x_ppem, y_ppem, &mark_x, &mark_y);
-               adjustment[adjust_idx].xoff += base_x - mark_x;
-               adjustment[adjust_idx].yoff -= base_y - mark_y;
+               adjustment[adjust_idx].xoff = base_x - mark_x;
+               adjustment[adjust_idx].yoff = - (base_y - mark_y);
                adjustment[adjust_idx].back = (g - prev);
                adjustment[adjust_idx].xadv = 0;
                adjustment[adjust_idx].advance_is_absolute = 1;