[ft] Use FT_Done_MM_Var() if available

This commit is contained in:
Behdad Esfahbod 2018-01-08 10:07:46 +00:00
parent 66d7beff96
commit 0473d95e27
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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
}