From a9d3ac385ae58093662959ab24d4c97a5a0f0cfe Mon Sep 17 00:00:00 2001 From: handa Date: Sat, 7 Nov 2009 02:23:56 +0000 Subject: [PATCH] (update_seq_area): Accumulate adjustments by ValueRecord. --- example/otfview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/otfview.c b/example/otfview.c index 099f125..d867f30 100644 --- a/example/otfview.c +++ b/example/otfview.c @@ -456,11 +456,11 @@ update_seq_area () int format = g->f.f1.format; if (format & OTF_XPlacement) - xoff = g->f.f1.value->XPlacement * pixel_size / unitsPerEm; + xoff += g->f.f1.value->XPlacement * pixel_size / unitsPerEm; if (format & OTF_XPlaDevice) xoff += DEVICE_DELTA (g->f.f1.value->XPlaDevice, pixel_size); if (format & OTF_YPlacement) - yoff = g->f.f1.value->YPlacement * pixel_size / unitsPerEm; + yoff += g->f.f1.value->YPlacement * pixel_size / unitsPerEm; if (format & OTF_YPlaDevice) yoff += DEVICE_DELTA (g->f.f1.value->YPlaDevice, pixel_size); if (format & OTF_XAdvance) -- 1.7.10.4