aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-05-31 14:52:54 +0000
committerJason Rumney2007-05-31 14:52:54 +0000
commit771bd479397de7861812ac46c3e2d42f9f59d042 (patch)
treea52a0a9546a5d2f1ae0d8f61573f1fcebe7d201f /src
parent9a3ff4f1adc0903e2ef24d638d6a94b45310eb44 (diff)
downloademacs-771bd479397de7861812ac46c3e2d42f9f59d042.tar.gz
emacs-771bd479397de7861812ac46c3e2d42f9f59d042.zip
(Ffont_get): Use font driver to determine otf capability.
Diffstat (limited to 'src')
-rw-r--r--src/font.c9
1 files 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. */)
2998 2998
2999 if (EQ (prop, QCotf)) 2999 if (EQ (prop, QCotf))
3000 { 3000 {
3001#ifdef HAVE_LIBOTF 3001 if (fontp->driver->otf_capability)
3002 return font_otf_capability (fontp); 3002 return fontp->driver->otf_capability (fontp);
3003#else /* not HAVE_LIBOTF */ 3003 else
3004 return Qnil; 3004 return Qnil;
3005#endif /* not HAVE_LIBOTF */
3006 } 3005 }
3007 font = fontp->entity; 3006 font = fontp->entity;
3008 } 3007 }