diff libass/ass_render.c @ 22845:76d4478e13ac

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
author iive
date Sat, 31 Mar 2007 20:58:14 +0000
parents ec65ae350bb6
children 71b3e04d0555
line wrap: on
line diff
--- a/libass/ass_render.c	Sat Mar 31 18:12:16 2007 +0000
+++ b/libass/ass_render.c	Sat Mar 31 20:58:14 2007 +0000
@@ -1277,7 +1277,7 @@
 
 	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);
 		}