[MPlayer-cvslog] r20326 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Sat Oct 21 01:06:52 CEST 2006


Author: eugeni
Date: Sat Oct 21 01:06:52 2006
New Revision: 20326

Modified:
   trunk/libass/ass_render.c

Log:
Don't forget to apply scaling coefficients to kerning values.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Sat Oct 21 01:06:52 2006
@@ -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;



More information about the MPlayer-cvslog mailing list