1 From 97d61f878e6378efbde73923a36f71caac73a4a0 Mon Sep 17 00:00:00 2001
2 From: Paul Eggert <eggert@cs.ucla.edu>
3 Date: Tue, 3 Apr 2018 08:12:41 -0700
4 Subject: [PATCH] Port FC_COLOR change to older fontconfig
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Problem reported by John ff in:
10 https://lists.gnu.org/r/emacs-devel/2018-04/msg00058.html
11 * src/ftfont.c (ftfont_spec_pattern) [!FC_COLOR]:
12 Don’t use FC_COLOR on older fontconfigs that don’t have it.
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/src/ftfont.c b/src/ftfont.c
18 index 24a92dd52e..84e4a30389 100644
21 @@ -764,7 +764,7 @@ ftfont_spec_pattern (Lisp_Object spec, char *otlayout, struct OpenTypeSpec **ots
23 && ! FcPatternAddBool (pattern, FC_SCALABLE, scalable ? FcTrue : FcFalse))
26 +#if defined HAVE_XFT && defined FC_COLOR
27 /* We really don't like color fonts, they cause Xft crashes. See
29 if (Vxft_ignore_color_fonts