From: Jason Rumney Date: Thu, 31 May 2007 14:52:54 +0000 (+0000) Subject: (Ffont_get): Use font driver to determine otf capability. X-Git-Tag: emacs-pretest-23.0.90~8295^2~474 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=771bd479397de7861812ac46c3e2d42f9f59d042;p=emacs.git (Ffont_get): Use font driver to determine otf capability. --- diff --git a/src/font.c b/src/font.c index db11387b2f4..15a3f8b99ad 100644 --- a/src/font.c +++ b/src/font.c @@ -2998,11 +2998,10 @@ FONT is a font-spec, a font-entity, or a font-object. */) 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; }