From 771bd479397de7861812ac46c3e2d42f9f59d042 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Thu, 31 May 2007 14:52:54 +0000 Subject: [PATCH] (Ffont_get): Use font driver to determine otf capability. --- src/font.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } -- 2.39.5