From: Grigori Goronzy Date: Wed, 24 Jun 2009 21:48:05 +0000 (+0200) Subject: Correct vertical glyph positioning for \fay X-Git-Tag: 0.9.7~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b53fb2ad554440646f5dfe781459af058ba11f8f;p=libass Correct vertical glyph positioning for \fay Offset the next glyph by the total shear of the glyph before. This is done before line-wrapping, so that a line that is vertically sheared will get as much higher, as it is sheared. Fine by me, but vsfilter probably does it in a different way. --- diff --git a/libass/ass_render.c b/libass/ass_render.c index 385821e..b405e18 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2285,6 +2285,8 @@ ass_render_event(ass_renderer_t *render_priv, ass_event_t *event, pen.x += text_info->glyphs[text_info->length].advance.x; pen.x += double_to_d6(render_priv->state.hspacing); pen.y += text_info->glyphs[text_info->length].advance.y; + pen.y += render_priv->state.fay * + text_info->glyphs[text_info->length].advance.x; previous = code;