changeset 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 e1d105dbe427
children 49d1cdd3b100
files src/font.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
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;
     }