]> git.eshelyaron.com Git - emacs.git/commitdiff
Assume hb_ft_font_create_referenced if HarfBuzz
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Dec 2018 00:40:44 +0000 (16:40 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 15 Dec 2018 00:41:23 +0000 (16:41 -0800)
* configure.ac (HAVE_HB_FT_FONT_CREATE_REFERENCED):
Remove test, since we now require 0.9.42 and
hb_ft_font_create_referenced has been present since 0.9.38.
* src/ftfont.c (ft_face_destroy, hb_ft_font_create_referenced):
Remove; no longer needed.

configure.ac
src/ftfont.c

index 7a45a541f282a24de0fbd95b2c18d47fb989d9a8..991ab55c6856b82252a913b46d79db784ebded96 100644 (file)
@@ -3317,13 +3317,6 @@ if test "${HAVE_X11}" = "yes"; then
        EMACS_CHECK_MODULES([HARFBUZZ], [harfbuzz >= 0.9.42])
        if test "$HAVE_HARFBUZZ" = "yes"; then
          AC_DEFINE(HAVE_HARFBUZZ, 1, [Define to 1 if using HarfBuzz.])
-         AC_CHECK_LIB(harfbuzz, hb_ft_font_create_referenced,
-                      HAVE_HB_FT_FONT_CREATE_REFERENCED=yes,
-                      HAVE_HB_FT_FONT_CREATE_REFERENCED=no)
-         if test "${HAVE_HB_FT_FONT_CREATE_REFERENCED}" = "yes"; then
-           AC_DEFINE(HAVE_HB_FT_FONT_CREATE_REFERENCED, 1,
-                     [Define to 1 if HarfBuzz has hb_ft_font_create_referenced.])
-         fi
        fi
       fi
       if test "${with_libotf}" != "no"; then
index 47442df0e5ad5b7393097c008ae4aeef7ba6a4be..bc9889639378c43116af48179b36bef817f08614 100644 (file)
@@ -478,21 +478,6 @@ ftfont_get_otf (struct ftfont_info *ftfont_info)
 
 #ifdef HAVE_HARFBUZZ
 
-# ifndef HAVE_HB_FT_FONT_CREATE_REFERENCED
-static void
-ft_face_destroy (void *data)
-{
-  FT_Done_Face (data);
-}
-
-static hb_font_t *
-hb_ft_font_create_referenced (FT_Face face)
-{
-  FT_Reference_Face (face);
-  return hb_ft_font_create (face, ft_face_destroy);
-}
-# endif
-
 static hb_font_t *
 ftfont_get_hb_font (struct ftfont_info *ftfont_info)
 {