aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2007-05-31 14:57:48 +0000
committerJason Rumney2007-05-31 14:57:48 +0000
commit2bded7fe213fe999a243172dd770e0c97869db64 (patch)
treec6e496b9738d6081e954019982f7ca84b7d15229
parentb724906ab20bd424a002213a93e2fb02a6ac85e8 (diff)
downloademacs-2bded7fe213fe999a243172dd770e0c97869db64.tar.gz
emacs-2bded7fe213fe999a243172dd770e0c97869db64.zip
(Ffont_get): Use font driver to determine otf capability.
(adjust_anchor): Check if driver defines anchor_point before using.
-rw-r--r--src/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c
index 15a3f8b99ad..965bf3f4b6f 100644
--- a/src/font.c
+++ b/src/font.c
@@ -1667,7 +1667,7 @@ void
1667adjust_anchor (struct font *font, OTF_Anchor *anchor, 1667adjust_anchor (struct font *font, OTF_Anchor *anchor,
1668 unsigned code, int size, int *x, int *y) 1668 unsigned code, int size, int *x, int *y)
1669{ 1669{
1670 if (anchor->AnchorFormat == 2) 1670 if (anchor->AnchorFormat == 2 && font->driver->anchor_point)
1671 { 1671 {
1672 int x0, y0; 1672 int x0, y0;
1673 1673