# HG changeset patch # User Jason Rumney # Date 1180623174 0 # Node ID 7bf78e56f04fe9d620a82ecd3c94b222fed745eb # Parent e1d105dbe42735b73559ebf5e5e3f98f97f74346 (Ffont_get): Use font driver to determine otf capability. diff -r e1d105dbe427 -r 7bf78e56f04f src/font.c --- 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; }