]> git.eshelyaron.com Git - emacs.git/commitdiff
(Ffont_get): Use font driver to determine otf capability.
authorJason Rumney <jasonr@gnu.org>
Thu, 31 May 2007 14:52:54 +0000 (14:52 +0000)
committerJason Rumney <jasonr@gnu.org>
Thu, 31 May 2007 14:52:54 +0000 (14:52 +0000)
src/font.c

index db11387b2f4c33b0e11645a16a4f90d0af5bb4bf..15a3f8b99ad3c59540ebb796769925191f4c1ebf 100644 (file)
@@ -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;
     }