]> granicus.if.org Git - libass/commitdiff
ass_shaper: changing scale_x/y starts a new glyph run
authorwm4 <wm4@nowhere>
Wed, 25 Sep 2013 21:28:38 +0000 (23:28 +0200)
committerwm4 <wm4@nowhere>
Thu, 26 Sep 2013 17:28:32 +0000 (19:28 +0200)
Since font_size is usually normalized to 256, scale_x/y has to be used
for this purpose.

libass/ass_shaper.c

index 46e6edc58c5bc57498aac49b7a25ae06476dfbcd..7e0d7d124484c08c8367e232becce613141b87d8 100644 (file)
@@ -712,6 +712,8 @@ void ass_shaper_find_runs(ASS_Shaper *shaper, ASS_Renderer *render_priv,
         // shape runs share the same font face and size
         if (i > 0 && (last->font != info->font ||
                     last->font_size != info->font_size ||
+                    last->scale_x != info->scale_x ||
+                    last->scale_y != info->scale_y ||
                     last->face_index != info->face_index ||
                     last->script != info->script))
             shape_run++;