[MPlayer-cvslog] r22863 - trunk/libass/ass_render.c

iive subversion at mplayerhq.hu
Sat Mar 31 22:58:15 CEST 2007


Author: iive
Date: Sat Mar 31 22:58:14 2007
New Revision: 22863

Modified:
   trunk/libass/ass_render.c

Log:
Use FT_Glyph_StrokeBorder to render only the outside border.
Workarounds gaps between glyph and glyph border when rendering some fonts with freetype below 2.1.10


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Sat Mar 31 22:58:14 2007
@@ -1277,7 +1277,7 @@ static void get_glyph(int symbol, glyph_
 
 	if (render_context.stroker) {
 		info->outline_glyph = info->glyph;
-		error = FT_Glyph_Stroke( &(info->outline_glyph), render_context.stroker, 0 ); // don't destroy original
+		error = FT_Glyph_StrokeBorder( &(info->outline_glyph), render_context.stroker, 0 , 0 ); // don't destroy original
 		if (error) {
 			mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_FT_Glyph_Stroke_Error, error);
 		}



More information about the MPlayer-cvslog mailing list