From e6edd998ac7c243a28f5d6214ca0590d06f2d61d Mon Sep 17 00:00:00 2001 From: handa Date: Sat, 7 Nov 2009 02:19:07 +0000 Subject: [PATCH] (ft_drive_otf): Don't accumulate anchor adjustments. --- src/font-ft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.4