diff options
| author | Mike Kupfer | 2018-12-16 21:18:04 -0800 |
|---|---|---|
| committer | Eli Zaretskii | 2018-12-17 19:08:24 +0200 |
| commit | 3c64f02c39d9b71d9a43d6485422b3f11d074ecf (patch) | |
| tree | 7a4425e0308465d695426e2940efd02970b3ce35 /src | |
| parent | cae8b69addd22dee5eff86d79bee1bb452d827fb (diff) | |
| download | emacs-3c64f02c39d9b71d9a43d6485422b3f11d074ecf.tar.gz 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')
| -rw-r--r-- | src/ftcrfont.c | 2 | ||||
| -rw-r--r-- | src/ftxfont.c | 2 | ||||
| -rw-r--r-- | src/xftfont.c | 4 |
3 files changed, 4 insertions, 4 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 = | |||
| 302 | #ifdef HAVE_LIBOTF | 302 | #ifdef HAVE_LIBOTF |
| 303 | .otf_capability = ftfont_otf_capability, | 303 | .otf_capability = ftfont_otf_capability, |
| 304 | #endif | 304 | #endif |
| 305 | #if defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ | 305 | #if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ) |
| 306 | .shape = ftfont_shape, | 306 | .shape = ftfont_shape, |
| 307 | #endif | 307 | #endif |
| 308 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 308 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |
diff --git a/src/ftxfont.c b/src/ftxfont.c index 4d4ff6ee0c5..a30b07636e6 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c | |||
| @@ -359,7 +359,7 @@ struct font_driver const ftxfont_driver = | |||
| 359 | .otf_capability = ftfont_otf_capability, | 359 | .otf_capability = ftfont_otf_capability, |
| 360 | #endif | 360 | #endif |
| 361 | .end_for_frame = ftxfont_end_for_frame, | 361 | .end_for_frame = ftxfont_end_for_frame, |
| 362 | #if defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ | 362 | #if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ) |
| 363 | .shape = ftfont_shape, | 363 | .shape = ftfont_shape, |
| 364 | #endif | 364 | #endif |
| 365 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 365 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |
diff --git a/src/xftfont.c b/src/xftfont.c index e0bd243467a..5111936f3e7 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -672,7 +672,7 @@ xftfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 672 | return len; | 672 | return len; |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | #if defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ | 675 | #if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ) |
| 676 | static Lisp_Object | 676 | static Lisp_Object |
| 677 | xftfont_shape (Lisp_Object lgstring) | 677 | xftfont_shape (Lisp_Object lgstring) |
| 678 | { | 678 | { |
| @@ -784,7 +784,7 @@ struct font_driver const xftfont_driver = | |||
| 784 | .otf_capability = ftfont_otf_capability, | 784 | .otf_capability = ftfont_otf_capability, |
| 785 | #endif | 785 | #endif |
| 786 | .end_for_frame = xftfont_end_for_frame, | 786 | .end_for_frame = xftfont_end_for_frame, |
| 787 | #if defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ | 787 | #if defined HAVE_LIBOTF && (defined HAVE_M17N_FLT || defined HAVE_HARFBUZZ) |
| 788 | .shape = xftfont_shape, | 788 | .shape = xftfont_shape, |
| 789 | #endif | 789 | #endif |
| 790 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 790 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |