From: handa Date: Thu, 2 Sep 2010 06:54:28 +0000 (+0000) Subject: (visual_order): Reorder only RTL composed-sequence. X-Git-Tag: REL-1-6-2~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=14b1c323a4faefb736c3bece6cede59c9f052dbd;p=m17n%2Fm17n-lib.git (visual_order): Reorder only RTL composed-sequence. --- 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));