From 758b15ecd437137bb9e794884fa8483430a0fee6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Sep 2012 22:12:17 +0200 Subject: Fix \fay when used with multiline subs When \fay tag is applied to a multiline sub, it causes subsequent lines of the sub to be offset vertically as if it was rendered next to the previous line (not below). Patch by Hector Martin , with an additional correction related to libass issue #46. --- libass/ass_render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libass/ass_render.c b/libass/ass_render.c index 7be12fa..c7ebef5 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1942,6 +1942,7 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, for (i = 0; i < text_info->length; i++) { GlyphInfo *info = glyphs + cmap[i]; if (glyphs[i].linebreak) { + pen.y -= (info->fay / info->scale_x * info->scale_y) * pen.x; pen.x = 0; pen.y += double_to_d6(text_info->lines[lineno-1].desc); pen.y += double_to_d6(text_info->lines[lineno].asc); -- cgit v1.2.3