From: handa Date: Sat, 7 Nov 2009 02:19:07 +0000 (+0000) Subject: (ft_drive_otf): Don't accumulate anchor adjustments. X-Git-Tag: merge-to-XML~43 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=e6edd998ac7c243a28f5d6214ca0590d06f2d61d;p=m17n%2Fm17n-lib.git (ft_drive_otf): Don't accumulate anchor adjustments. --- diff --git a/src/font-ft.c b/src/font-ft.c index 8f0cf57..692713e 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -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;