changeset 90883:ce81330d951f

(Ffont_get): Use font driver to determine otf capability. (adjust_anchor): Check if driver defines anchor_point before using.
author Jason Rumney <jasonr@gnu.org>
date Thu, 31 May 2007 14:57:48 +0000
parents 49d1cdd3b100
children 64638607bdf3
files src/font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Thu May 31 14:53:18 2007 +0000
+++ b/src/font.c	Thu May 31 14:57:48 2007 +0000
@@ -1667,7 +1667,7 @@
 adjust_anchor (struct font *font, OTF_Anchor *anchor,
 	       unsigned code, int size, int *x, int *y)
 {
-  if (anchor->AnchorFormat == 2)
+  if (anchor->AnchorFormat == 2 && font->driver->anchor_point)
     {
       int x0, y0;