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
#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)
{