diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-31 20:58:14 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-31 20:58:14 +0000 |
commit | 3f202c6bb821dc621cd64b3f939cbce6a02d773d (patch) | |
tree | ec1ab1cbcc55d248f3907dc54c2c3b01c2b56f46 /libass/ass_render.c | |
parent | 3378dfb99586b03d084f352bd63b20f364ffc658 (diff) | |
download | libass-3f202c6bb821dc621cd64b3f939cbce6a02d773d.tar.bz2 libass-3f202c6bb821dc621cd64b3f939cbce6a02d773d.tar.xz |
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
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22863 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r-- | libass/ass_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 1fb35c76..11f90b5a 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -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); } |