Commit 2ce56c51 authored by Glenn Morris's avatar Glenn Morris

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.
parent e3b46f0b
......@@ -3303,6 +3303,11 @@ if test "${HAVE_X11}" = "yes"; then
AC_DEFINE(HAVE_OTF_GET_VARIATION_GLYPHS, 1,
[Define to 1 if libotf has OTF_get_variation_glyphs.])
fi
EMACS_CHECK_MODULES([OTFOK], [libotf >= 0.9.16])
if test "$HAVE_OTFOK" != "yes"; then
AC_DEFINE(HAVE_OTF_KANNADA_BUG, 1,
[Define to 1 if libotf is affected by https://debbugs.gnu.org/28110.])
fi
fi
fi
dnl FIXME should there be an error if HAVE_FREETYPE != yes?
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment