diff options
| author | Paul Eggert | 2018-04-03 08:12:41 -0700 |
|---|---|---|
| committer | Robert Pluim | 2018-06-05 14:08:08 +0200 |
| commit | 97d61f878e6378efbde73923a36f71caac73a4a0 (patch) | |
| tree | f4601d5d78fcb7168f65ae9dac33463aa5538cce /src | |
| parent | f21fa142aca53e3de5783e1ce6fe1bf116174aeb (diff) | |
| download | emacs-97d61f878e6378efbde73923a36f71caac73a4a0.tar.gz emacs-97d61f878e6378efbde73923a36f71caac73a4a0.zip | |
Port FC_COLOR change to older fontconfig
Problem reported by John ff in:
https://lists.gnu.org/r/emacs-devel/2018-04/msg00058.html
* src/ftfont.c (ftfont_spec_pattern) [!FC_COLOR]:
Don’t use FC_COLOR on older fontconfigs that don’t have it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 24a92dd52e8..84e4a303899 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -764,7 +764,7 @@ ftfont_spec_pattern (Lisp_Object spec, char *otlayout, struct OpenTypeSpec **ots | |||
| 764 | if (scalable >= 0 | 764 | if (scalable >= 0 |
| 765 | && ! FcPatternAddBool (pattern, FC_SCALABLE, scalable ? FcTrue : FcFalse)) | 765 | && ! FcPatternAddBool (pattern, FC_SCALABLE, scalable ? FcTrue : FcFalse)) |
| 766 | goto err; | 766 | goto err; |
| 767 | #ifdef HAVE_XFT | 767 | #if defined HAVE_XFT && defined FC_COLOR |
| 768 | /* We really don't like color fonts, they cause Xft crashes. See | 768 | /* We really don't like color fonts, they cause Xft crashes. See |
| 769 | Bug#30874. */ | 769 | Bug#30874. */ |
| 770 | if (Vxft_ignore_color_fonts | 770 | if (Vxft_ignore_color_fonts |