summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2014-01-07 23:41:43 +0200
committerOleg Oshmyan <chortos@inbox.lv>2014-01-08 03:18:55 +0200
commit42de08a28d0ed7fe72467b6ce6c6a14b8126f26a (patch)
tree4ec3fc27f3a6f7d1ee00c72d296565c7b163c990
parent97b157f5625b4d4caf50309a20e7da09f7464d8c (diff)
downloadlibass-42de08a28d0ed7fe72467b6ce6c6a14b8126f26a.tar.bz2
libass-42de08a28d0ed7fe72467b6ce6c6a14b8126f26a.tar.xz
Don't try to remove end-of-line \fsp
VSFilter does not do this. The code being removed was already buggy: i > 0 should have been "got any non-skipped glyphs since last_break?", and hspacing should have been taken from glyphs[i-1].
-rw-r--r--libass/ass_render.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 1db0ac4..6ecfc99 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -2001,10 +2001,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event,
double width = 0;
for (i = 0; i <= text_info->length; ++i) { // (text_info->length + 1) is the end of the last line
if ((i == text_info->length) || glyphs[i].linebreak) {
- // remove letter spacing (which is included in cluster_advance)
- if (i > 0)
- width -= render_priv->state.hspacing * render_priv->font_scale *
- glyphs[i-1].scale_x;
double shift = 0;
if (halign == HALIGN_LEFT) { // left aligned, no action
shift = 0;