Commit 771bd479 authored by Jason Rumney's avatar Jason Rumney
Browse files

(Ffont_get): Use font driver to determine otf capability.

parent 9a3ff4f1
...@@ -2998,11 +2998,10 @@ FONT is a font-spec, a font-entity, or a font-object. */) ...@@ -2998,11 +2998,10 @@ FONT is a font-spec, a font-entity, or a font-object. */)
if (EQ (prop, QCotf)) if (EQ (prop, QCotf))
{ {
#ifdef HAVE_LIBOTF if (fontp->driver->otf_capability)
return font_otf_capability (fontp); return fontp->driver->otf_capability (fontp);
#else /* not HAVE_LIBOTF */ else
return Qnil; return Qnil;
#endif /* not HAVE_LIBOTF */
} }
font = fontp->entity; font = fontp->entity;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment