projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d7ee19
)
(visual_order): Reorder only RTL composed-sequence.
author
handa
<handa>
Thu, 2 Sep 2010 06:54:28 +0000
(06:54 +0000)
committer
handa
<handa>
Thu, 2 Sep 2010 06:54:28 +0000
(06:54 +0000)
src/draw.c
patch
|
blob
|
history
diff --git
a/src/draw.c
b/src/draw.c
index
f5b23cf
..
1fef78a
100644
(file)
--- 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));