1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00

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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20326 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-10-20 23:06:52 +00:00
parent 2b13b3a6c8
commit 08d9c0718a

View File

@ -1660,8 +1660,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
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;