aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/font.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c
index 2786a772dc3..779b8520962 100644
--- a/src/font.c
+++ b/src/font.c
@@ -2810,7 +2810,13 @@ font_list_entities (struct frame *f, Lisp_Object spec)
2810 || ! NILP (Vface_ignored_fonts))) 2810 || ! NILP (Vface_ignored_fonts)))
2811 val = font_delete_unmatched (val, need_filtering ? spec : Qnil, size); 2811 val = font_delete_unmatched (val, need_filtering ? spec : Qnil, size);
2812 if (ASIZE (val) > 0) 2812 if (ASIZE (val) > 0)
2813 list = Fcons (val, list); 2813 {
2814 list = Fcons (val, list);
2815 /* Querying further backends can be very slow, so we only do
2816 it if the user has explicitly requested it (Bug#43177). */
2817 if (query_all_font_backends == false)
2818 break;
2819 }
2814 } 2820 }
2815 2821
2816 list = Fnreverse (list); 2822 list = Fnreverse (list);
@@ -5527,6 +5533,13 @@ Non-nil means don't query fontconfig for color fonts, since they often
5527cause Xft crashes. Only has an effect in Xft builds. */); 5533cause Xft crashes. Only has an effect in Xft builds. */);
5528 xft_ignore_color_fonts = true; 5534 xft_ignore_color_fonts = true;
5529 5535
5536 DEFVAR_BOOL ("query-all-font-backends", query_all_font_backends,
5537 doc: /*
5538If non-nil attempt to query all available font backends.
5539By default Emacs will stop searching for a matching font at the first
5540match. */);
5541 query_all_font_backends = false;
5542
5530#ifdef HAVE_WINDOW_SYSTEM 5543#ifdef HAVE_WINDOW_SYSTEM
5531#ifdef HAVE_FREETYPE 5544#ifdef HAVE_FREETYPE
5532 syms_of_ftfont (); 5545 syms_of_ftfont ();