*** empty log message ***
authorKenichi Handa <handa@m17n.org>
Mon, 21 Jul 2008 02:23:57 +0000 (02:23 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 21 Jul 2008 02:23:57 +0000 (02:23 +0000)
src/ChangeLog
src/ftfont.c

index a890f27..93b1092 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-21  Kenichi Handa  <handa@m17n.org>
+
+       * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
+
 2008-07-20  Andreas Schwab  <schwab@suse.de>
 
        * syntax.c (find_start_pos, find_start_value)
index 131e4b8..73d7ae4 100644 (file)
@@ -1480,9 +1480,11 @@ adjust_anchor (FT_Face ft_face, OTF_Anchor *anchor,
     }
   else if (anchor->AnchorFormat == 3)
     {
-      if (anchor->f.f2.XDeviceTable.offset)
+      if (anchor->f.f2.XDeviceTable.offset
+         && anchor->f.f2.XDeviceTable.DeltaValue)
        *x += DEVICE_DELTA (anchor->f.f2.XDeviceTable, x_ppem);
-      if (anchor->f.f2.YDeviceTable.offset)
+      if (anchor->f.f2.YDeviceTable.offset
+         && anchor->f.f2.YDeviceTable.DeltaValue)
        *y += DEVICE_DELTA (anchor->f.f2.YDeviceTable, y_ppem);
     }
 }