diff options
author | Grigori Goronzy <greg@blackbox> | 2011-07-25 00:00:53 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-07-25 00:00:53 +0200 |
commit | b8b59fa2fccc8f7a949a523d99da3f0cd416971b (patch) | |
tree | 38b2bde2dc84a0dd2c7ebddd9be2e172425168a7 /libass/ass_shaper.c | |
parent | 3191ba8c9e455bda7e868540baa21e0afde2b72b (diff) | |
download | libass-b8b59fa2fccc8f7a949a523d99da3f0cd416971b.tar.bz2 libass-b8b59fa2fccc8f7a949a523d99da3f0cd416971b.tar.xz |
Disable reordering of non-spacing marks
FriBidi's line reordering algorithm reorders non-spacing marks
(diacritics, etc.) to come after the base character by default. This
doesn't work particularly well with our layout model and leads to
wrongly positioned marks in some cases with HarfBuzz and all cases
with FriBidi shaping.
Diffstat (limited to 'libass/ass_shaper.c')
-rw-r--r-- | libass/ass_shaper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c index 9ef5fd5e..c0183257 100644 --- a/libass/ass_shaper.c +++ b/libass/ass_shaper.c @@ -436,7 +436,7 @@ FriBidiStrIndex *ass_shaper_reorder(ASS_Shaper *shaper, TextInfo *text_info) // FIXME: we should actually specify // the correct paragraph base direction - level = fribidi_reorder_line(FRIBIDI_FLAGS_DEFAULT, + level = fribidi_reorder_line(0, shaper->ctypes + line->offset, line->len, 0, dir, shaper->emblevels + line->offset, NULL, shaper->cmap + line->offset); |