From 14b1c323a4faefb736c3bece6cede59c9f052dbd Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 2 Sep 2010 06:54:28 +0000 Subject: [PATCH] (visual_order): Reorder only RTL composed-sequence. --- src/draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index f5b23cf..1fef78a 100644 --- a/src/draw.c +++ b/src/draw.c @@ -225,9 +225,10 @@ visual_order (MGlyphString *gstring) for (i = 1; i < gstring->used - 1; i++) { MGlyph *g = gstring->glyphs + i; + int level = g->bidi_level; for (j = i; g->g.from == gstring->glyphs[j + 1].g.from; j++); - if (j > i) + if ((level % 2) && j > i) { memcpy (glyphs + i, gstring->glyphs + i, sizeof (MGlyph) * (j - i + 1)); -- 1.7.10.4