]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert previous commit
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sun, 2 Jun 2019 04:30:21 +0000 (13:30 +0900)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sun, 2 Jun 2019 04:30:21 +0000 (13:30 +0900)
This reverts commit 1ab69630dcb8c7a1b1b4171211a7c8ebf11b0d1c.
It has a wrong commit message.

configure.ac
src/ftcrfont.c
src/ftfont.c
src/ftxfont.c
src/xftfont.c

index bd51f54212c8a59917b768e22a84e3f0a64f85ae..b228571c177482211928e12b7b70eed46047f541 100644 (file)
@@ -3413,13 +3413,6 @@ if test "${HAVE_X11}" = "yes"; then
   if test "${HAVE_FREETYPE}" = "yes"; then
     AC_DEFINE(HAVE_FREETYPE, 1,
              [Define to 1 if using the freetype and fontconfig libraries.])
-    OLD_CFLAGS=$CFLAGS
-    OLD_LIBS=$LIBS
-    CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
-    LIBS="$FREETYPE_LIBS $LIBS"
-    AC_CHECK_FUNCS(FT_Face_GetCharVariantIndex)
-    CFLAGS=$OLD_CFLAGS
-    LIBS=$OLD_LIBS
     if test "${with_libotf}" != "no"; then
       EMACS_CHECK_MODULES([LIBOTF], [libotf])
       if test "$HAVE_LIBOTF" = "yes"; then
index 1c28a7ceb67fedcdb3544e28500bf62277c676a3..0c3b74ff289fd6b74a1911d96f732b72df775bf4 100644 (file)
@@ -455,7 +455,7 @@ ftcrfont_shape (Lisp_Object lgstring, Lisp_Object direction)
 }
 #endif
 
-#if defined HAVE_OTF_GET_VARIATION_GLYPHS || defined HAVE_FT_FACE_GETCHARVARIANTINDEX
+#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
 static int
 ftcrfont_variation_glyphs (struct font *font, int c, unsigned variations[256])
 {
@@ -470,7 +470,7 @@ ftcrfont_variation_glyphs (struct font *font, int c, unsigned variations[256])
 
   return result;
 }
-#endif /* HAVE_OTF_GET_VARIATION_GLYPHS || HAVE_FT_FACE_GETCHARVARIANTINDEX */
+#endif /* HAVE_OTF_GET_VARIATION_GLYPHS */
 
 static int
 ftcrfont_draw (struct glyph_string *s,
@@ -583,7 +583,7 @@ struct font_driver const ftcrfont_driver =
 #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
   .shape = ftcrfont_shape,
 #endif
-#if defined HAVE_OTF_GET_VARIATION_GLYPHS || defined HAVE_FT_FACE_GETCHARVARIANTINDEX
+#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
   .get_variation_glyphs = ftcrfont_variation_glyphs,
 #endif
   .filter_properties = ftfont_filter_properties,
index efd0fcbd8c0c52b3fa8ea87f1c010840adefc19f..97ab4d0e377683d73b51b18748332c91912a8cae 100644 (file)
@@ -2820,41 +2820,21 @@ ftfont_shape (Lisp_Object lgstring, Lisp_Object direction)
 
 #endif /* HAVE_M17N_FLT */
 
-#endif /* HAVE_LIBOTF */
+#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
 
-#if defined HAVE_OTF_GET_VARIATION_GLYPHS || defined HAVE_FT_FACE_GETCHARVARIANTINDEX
 int
 ftfont_variation_glyphs (struct font *font, int c, unsigned variations[256])
 {
   struct font_info *ftfont_info = (struct font_info *) font;
-#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
   OTF *otf = ftfont_get_otf (ftfont_info);
 
   if (! otf)
     return 0;
   return OTF_get_variation_glyphs (otf, c, variations);
-#else  /* !HAVE_OTF_GET_VARIATION_GLYPHS */
-  FT_Face ft_face = ftfont_info->ft_size->face;
-  int i, n = 0;
-
-  for (i = 0; i < 16; i++)
-    {
-      variations[i] = FT_Face_GetCharVariantIndex (ft_face, c, 0xFE00 + i);
-      if (variations[i])
-       n++;
-    }
-  for (; i < 256; i++)
-    {
-      variations[i] = FT_Face_GetCharVariantIndex (ft_face, c,
-                                                  0xE0100 + (i - 16));
-      if (variations[i])
-       n++;
-    }
-
-  return n;
-#endif  /* !HAVE_OTF_GET_VARIATION_GLYPHS */
 }
-#endif /* HAVE_OTF_GET_VARIATION_GLYPHS || HAVE_FT_FACE_GETCHARVARIANTINDEX */
+
+#endif /* HAVE_OTF_GET_VARIATION_GLYPHS */
+#endif /* HAVE_LIBOTF */
 
 #ifdef HAVE_HARFBUZZ
 
@@ -2956,7 +2936,7 @@ static struct font_driver const ftfont_driver =
 #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
   .shape = ftfont_shape,
 #endif
-#if defined HAVE_OTF_GET_VARIATION_GLYPHS || defined HAVE_FT_FACE_GETCHARVARIANTINDEX
+#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
   .get_variation_glyphs = ftfont_variation_glyphs,
 #endif
   .filter_properties = ftfont_filter_properties,
index b1467360ad6309a2867f14a8f731c867073c839c..da3e3fbae10d5de5e5cfa4be5570b60ecbabfe46 100644 (file)
@@ -351,7 +351,7 @@ struct font_driver const ftxfont_driver =
 #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
   .shape = ftfont_shape,
 #endif
-#if defined HAVE_OTF_GET_VARIATION_GLYPHS || defined HAVE_FT_FACE_GETCHARVARIANTINDEX
+#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
   .get_variation_glyphs = ftfont_variation_glyphs,
 #endif
   .filter_properties = ftfont_filter_properties,
index 04cda12fb52c19ab674c930cf4413e13cc37d84c..c1b93b76f572a641fdacf01870a0248d91c30db5 100644 (file)
@@ -661,7 +661,7 @@ struct font_driver const xftfont_driver =
 #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
   .shape = xftfont_shape,
 #endif
-#if defined HAVE_OTF_GET_VARIATION_GLYPHS || defined HAVE_FT_FACE_GETCHARVARIANTINDEX
+#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
   .get_variation_glyphs = ftfont_variation_glyphs,
 #endif
   .filter_properties = ftfont_filter_properties,