1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

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
This commit is contained in:
iive 2007-03-31 20:58:14 +00:00
parent 7bbb6e7043
commit b5da111dd8

View 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);
}