diff src/ftfont.c @ 96840:6434da51a24b

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Mon, 21 Jul 2008 02:23:24 +0000
parents 0ef6933bf3bd
children f1d6d439f960
line wrap: on
line diff
--- a/src/ftfont.c	Sun Jul 20 21:32:21 2008 +0000
+++ b/src/ftfont.c	Mon Jul 21 02:23:24 2008 +0000
@@ -1480,9 +1480,11 @@
     }
   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);
     }
 }