From: handa Date: Sat, 7 Nov 2009 02:23:56 +0000 (+0000) Subject: (update_seq_area): Accumulate adjustments by X-Git-Tag: REL-0-9-11~48 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=a9d3ac385ae58093662959ab24d4c97a5a0f0cfe;p=m17n%2Flibotf.git (update_seq_area): Accumulate adjustments by ValueRecord. --- 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)