diff --git a/libass/ass_font.c b/libass/ass_font.c index a629dcd660..493a283175 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -156,7 +156,7 @@ void ass_font_set_transform(ass_font_t* font, double scale_x, double scale_y, FT static void face_set_size(FT_Face face, double size) { -#if (FREETYPE_MAJOR >= 2) +#if (FREETYPE_MAJOR > 2) || ((FREETYPE_MAJOR == 2) && (FREETYPE_MINOR > 1)) TT_HoriHeader *hori = FT_Get_Sfnt_Table(face, ft_sfnt_hhea); TT_OS2 *os2 = FT_Get_Sfnt_Table(face, ft_sfnt_os2); double mscale = 1.;