]> git.eshelyaron.com Git - emacs.git/commitdiff
Workaround a libotf crash with Kannada font (bug#30193)
authorGlenn Morris <rgm@gnu.org>
Sat, 27 Jan 2018 03:53:20 +0000 (19:53 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 27 Jan 2018 03:53:20 +0000 (19:53 -0800)
* configure.ac (HAVE_OTF_KANNADA_BUG): New define.
* src/xfaces.c (syms_of_xfaces) <Vface_ignored_fonts>:
Add problematic Kannada font if necessary.

configure.ac
src/xfaces.c

index 1c4255da3f08f1ad375687fa5d242b9495a25b42..eb7e5ee26075935730ceaf0c4d1397c57c636016 100644 (file)
@@ -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?
index 34797994c3c48167829c48c201eca558ac3e7287..77afee4587d0bd727e46ccd2c8c17ded05f81886 100644 (file)
@@ -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.