summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-25 00:00:53 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-25 00:00:53 +0200
commitb8b59fa2fccc8f7a949a523d99da3f0cd416971b (patch)
tree38b2bde2dc84a0dd2c7ebddd9be2e172425168a7
parent3191ba8c9e455bda7e868540baa21e0afde2b72b (diff)
downloadlibass-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.
-rw-r--r--libass/ass_shaper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index 9ef5fd5..c018325 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);