summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-25 23:28:38 +0200
committerwm4 <wm4@nowhere>2013-09-26 19:28:32 +0200
commitbc0cfcca482fd4eca3c4273b4e30b2d11b63cbba (patch)
treeb25cbc9c0d9c36c7786cdfa94b6cd6136267731c
parent191457563a7e8c38ba41fc63d8b31284a37af114 (diff)
downloadlibass-bc0cfcca482fd4eca3c4273b4e30b2d11b63cbba.tar.bz2
libass-bc0cfcca482fd4eca3c4273b4e30b2d11b63cbba.tar.xz
ass_shaper: changing scale_x/y starts a new glyph run
Since font_size is usually normalized to 256, scale_x/y has to be used for this purpose.
-rw-r--r--libass/ass_shaper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index 46e6edc..7e0d7d1 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -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++;