]> granicus.if.org Git - libass/commitdiff
Scale letter spacing with font scale
authorGrigori Goronzy <greg@blackbox>
Wed, 1 Jul 2009 10:31:52 +0000 (12:31 +0200)
committerGrigori Goronzy <greg@blackbox>
Wed, 1 Jul 2009 10:31:52 +0000 (12:31 +0200)
libass/ass_render.c

index 07962c17db9cd95851c22015d92c6c3c0d8eac29..cc8242f255c638716f738716817fedaedd358020 100644 (file)
@@ -2506,7 +2506,8 @@ ass_render_event(ass_renderer_t *render_priv, ass_event_t *event,
         text_info->glyphs[text_info->length].pos.y = pen.y;
 
         pen.x += text_info->glyphs[text_info->length].advance.x;
-        pen.x += double_to_d6(render_priv->state.hspacing);
+        pen.x += double_to_d6(render_priv->state.hspacing *
+                              render_priv->font_scale);
         pen.y += text_info->glyphs[text_info->length].advance.y;
         pen.y += render_priv->state.fay *
                  text_info->glyphs[text_info->length].advance.x;