Mercurial > mplayer.hg
changeset 20320:33f0529d29e3
Don't forget to apply scaling coefficients to kerning values.
author | eugeni |
---|---|
date | Fri, 20 Oct 2006 23:06:52 +0000 |
parents | 03e64a7a6d5e |
children | d621f6533310 |
files | libass/ass_render.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Fri Oct 20 19:36:59 2006 +0000 +++ b/libass/ass_render.c Fri Oct 20 23:06:52 2006 +0000 @@ -1660,8 +1660,8 @@ if ( use_kerning && previous && glyph_index ) { FT_Vector delta; FT_Get_Kerning( render_context.face, previous, glyph_index, FT_KERNING_DEFAULT, &delta ); - pen.x += delta.x; - pen.y += delta.y; + pen.x += delta.x * render_context.scale_x; + pen.y += delta.y * render_context.scale_y; } shift.x = pen.x & 63;