Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
22844:ebfd79a43300 | 22845:76d4478e13ac |
---|---|
1275 info->advance.x = d16_to_d6(info->glyph->advance.x); | 1275 info->advance.x = d16_to_d6(info->glyph->advance.x); |
1276 info->advance.y = d16_to_d6(info->glyph->advance.y); | 1276 info->advance.y = d16_to_d6(info->glyph->advance.y); |
1277 | 1277 |
1278 if (render_context.stroker) { | 1278 if (render_context.stroker) { |
1279 info->outline_glyph = info->glyph; | 1279 info->outline_glyph = info->glyph; |
1280 error = FT_Glyph_Stroke( &(info->outline_glyph), render_context.stroker, 0 ); // don't destroy original | 1280 error = FT_Glyph_StrokeBorder( &(info->outline_glyph), render_context.stroker, 0 , 0 ); // don't destroy original |
1281 if (error) { | 1281 if (error) { |
1282 mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_FT_Glyph_Stroke_Error, error); | 1282 mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_FT_Glyph_Stroke_Error, error); |
1283 } | 1283 } |
1284 } | 1284 } |
1285 } | 1285 } |