diff options
| author | Jason Rumney | 2007-05-31 14:57:48 +0000 |
|---|---|---|
| committer | Jason Rumney | 2007-05-31 14:57:48 +0000 |
| commit | 2bded7fe213fe999a243172dd770e0c97869db64 (patch) | |
| tree | c6e496b9738d6081e954019982f7ca84b7d15229 | |
| parent | b724906ab20bd424a002213a93e2fb02a6ac85e8 (diff) | |
| download | emacs-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.c | 2 |
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 | |||
| 1667 | adjust_anchor (struct font *font, OTF_Anchor *anchor, | 1667 | adjust_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 | ||