summaryrefslogtreecommitdiff
path: root/src/ftcrfont.c
diff options
context:
space:
mode:
authorMike Kupfer <mkupfer@alum.berkeley.edu>2018-12-16 21:18:04 -0800
committerEli Zaretskii <eliz@gnu.org>2018-12-17 19:08:24 +0200
commit3c64f02c39d9b71d9a43d6485422b3f11d074ecf (patch)
tree7a4425e0308465d695426e2940efd02970b3ce35 /src/ftcrfont.c
parentcae8b69addd22dee5eff86d79bee1bb452d827fb (diff)
downloademacs-3c64f02c39d9b71d9a43d6485422b3f11d074ecf.tar.gz
emacs-3c64f02c39d9b71d9a43d6485422b3f11d074ecf.tar.bz2
emacs-3c64f02c39d9b71d9a43d6485422b3f11d074ecf.zip
More fixes for build without libotf
* src/xftfont.c (xftfont_driver): * src/ftxfont.c (ftxfont_driver): * src/ftcrfont.c (ftcrfont_driver): Set the .shape member only if HAVE_LIBOTF is defined. (Bug#33771)
Diffstat (limited to 'src/ftcrfont.c')
-rw-r--r--src/ftcrfont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftcrfont.c b/src/ftcrfont.c
index 6d74d937a73..ae5b0a92eee 100644
--- a/src/ftcrfont.c
+++ b/src/ftcrfont.c
@@ -302,7 +302,7 @@ struct font_driver const ftcrfont_driver =
#ifdef HAVE_LIBOTF
.otf_capability = ftfont_otf_capability,
#endif
-#if defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ
+#if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ)
.shape = ftfont_shape,
#endif
#ifdef HAVE_OTF_GET_VARIATION_GLYPHS