Mercurial > emacs
diff src/font.c @ 90881:7bf78e56f04f
(Ffont_get): Use font driver to determine otf capability.
| author | Jason Rumney <jasonr@gnu.org> |
|---|---|
| date | Thu, 31 May 2007 14:52:54 +0000 |
| parents | b08ad368c328 |
| children | ce81330d951f |
line wrap: on
line diff
--- a/src/font.c Thu May 31 13:20:43 2007 +0000 +++ b/src/font.c Thu May 31 14:52:54 2007 +0000 @@ -2998,11 +2998,10 @@ if (EQ (prop, QCotf)) { -#ifdef HAVE_LIBOTF - return font_otf_capability (fontp); -#else /* not HAVE_LIBOTF */ - return Qnil; -#endif /* not HAVE_LIBOTF */ + if (fontp->driver->otf_capability) + return fontp->driver->otf_capability (fontp); + else + return Qnil; } font = fontp->entity; }
