]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffont_get): Use font driver to determine otf capability.
authorJason Rumney <jasonr@gnu.org>
Thu, 31 May 2007 14:57:48 +0000 (14:57 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 31 May 2007 14:57:48 +0000 (14:57 +0000)
(adjust_anchor): Check if driver defines anchor_point before using.

src/font.c

index 15a3f8b99ad3c59540ebb796769925191f4c1ebf..965bf3f4b6fc8c5d2aa726c4927b3242afb1a32f 100644 (file)
@@ -1667,7 +1667,7 @@ void
 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;