[MPlayer-cvslog] r23357 - trunk/libass/ass_font.c
eugeni
subversion at mplayerhq.hu
Sun May 20 19:04:12 CEST 2007
Author: eugeni
Date: Sun May 20 19:04:12 2007
New Revision: 23357
Log:
FT_Request_Size does not exist in FreeType 2.1.*. Fallback to FT_Set_Char_Size.
Modified:
trunk/libass/ass_font.c
Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c (original)
+++ trunk/libass/ass_font.c Sun May 20 19:04:12 2007
@@ -156,6 +156,7 @@ void ass_font_set_transform(ass_font_t*
static void face_set_size(FT_Face face, double size)
{
+#if (FREETYPE_MAJOR >= 2)
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.;
@@ -174,6 +175,9 @@ static void face_set_size(FT_Face face,
m->ascender /= mscale;
m->descender /= mscale;
m->height /= mscale;
+#else
+ FT_Set_Char_Size(face, 0, double_to_d6(size), 0, 0);
+#endif
}
/**
More information about the MPlayer-cvslog
mailing list