(update_seq_area): Accumulate adjustments by
authorhanda <handa>
Sat, 7 Nov 2009 02:23:56 +0000 (02:23 +0000)
committerhanda <handa>
Sat, 7 Nov 2009 02:23:56 +0000 (02:23 +0000)
ValueRecord.

example/otfview.c

index 099f125..d867f30 100644 (file)
@@ -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)