[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Mon Jan 8 10:08:09 UTC 2018
configure.ac | 1 +
src/hb-ft.cc | 4 ++++
2 files changed, 5 insertions(+)
New commits:
commit 0473d95e276ae5df722bc7d371733d8202bdbc3c
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Mon Jan 8 10:07:46 2018 +0000
[ft] Use FT_Done_MM_Var() if available
diff --git a/configure.ac b/configure.ac
index 0227166f..18bfe2a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -355,6 +355,7 @@ if $have_freetype; then
LIBS="$LIBS $FREETYPE_LIBS"
AC_CHECK_FUNCS(FT_Get_Var_Blend_Coordinates)
AC_CHECK_FUNCS(FT_Set_Var_Blend_Coordinates)
+ AC_CHECK_FUNCS(FT_Done_MM_Var)
LIBS=$save_libs
fi
AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)
diff --git a/src/hb-ft.cc b/src/hb-ft.cc
index ae8c8d92..1c526cf3 100644
--- a/src/hb-ft.cc
+++ b/src/hb-ft.cc
@@ -651,7 +651,11 @@ hb_ft_font_changed (hb_font_t *font)
}
free (coords);
free (ft_coords);
+#ifdef HAVE_FT_DONE_MM_VAR
+ FT_Done_MM_Var (ft_face->glyph->library, mm_var);
+#else
free (mm_var);
+#endif
}
#endif
}
More information about the HarfBuzz
mailing list