summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-01-26 19:53:20 -0800
committerGlenn Morris <rgm@gnu.org>2018-01-26 19:53:20 -0800
commit2ce56c51a83f6658cc6c79e4cc3716cfddbb03ff (patch)
treedf32ce46faa922198fb9f065c85d8e69f3e99506 /src
parente3b46f0b9ea75d80d6cdd85e9f801304b285ee6d (diff)
downloademacs-2ce56c51a83f6658cc6c79e4cc3716cfddbb03ff.tar.gz
Workaround a libotf crash with Kannada font (bug#30193)
* configure.ac (HAVE_OTF_KANNADA_BUG): New define. * src/xfaces.c (syms_of_xfaces) <Vface_ignored_fonts>: Add problematic Kannada font if necessary.
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 34797994c3c..77afee4587d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -6526,7 +6526,12 @@ other font of the appropriate family and registry is available. */);
doc: /* List of ignored fonts.
Each element is a regular expression that matches names of fonts to
ignore. */);
+#ifdef HAVE_OTF_KANNADA_BUG
+ /* https://debbugs.gnu.org/30193 */
+ Vface_ignored_fonts = list1 (build_string ("Noto Serif Kannada"));
+#else
Vface_ignored_fonts = Qnil;
+#endif
DEFVAR_LISP ("face-remapping-alist", Vface_remapping_alist,
doc: /* Alist of face remappings.