]> granicus.if.org Git - libass/commitdiff
Use FT_Glyph_StrokeBorder to render only the outside border.
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 31 Mar 2007 20:58:14 +0000 (20:58 +0000)
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 31 Mar 2007 20:58:14 +0000 (20:58 +0000)
Workarounds gaps between glyph and glyph border when rendering some fonts with freetype below 2.1.10

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22863 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 1fb35c76f1acac69353d50e4e146f403e17365b8..11f90b5a5863398f0886b023fbe26ac97129679e 100644 (file)
@@ -1277,7 +1277,7 @@ static void get_glyph(int symbol, glyph_info_t* info, FT_Vector* advance)
 
        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);
                }