# HG changeset patch # User iive # Date 1175374694 0 # Node ID 76d4478e13acfad9a9b2243c80d4d5dc24377b5d # Parent ebfd79a43300df10aef73ee4035ebdf14df6c3ec 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 diff -r ebfd79a43300 -r 76d4478e13ac libass/ass_render.c --- 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); }