[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: qt-copy/src/kernel
From: Lars Knoll <knoll () kde ! org>
Date: 2003-05-20 12:05:33
[Download RAW message or body]
CVS commit by knoll:
correctly reorder tamil and malayalam
CCMAIL: 58591-done@bugs.kde.org
M +8 -8 qscriptengine_x11.cpp 1.2
--- qt-copy/src/kernel/qscriptengine_x11.cpp #1.1:1.2
@@ -1516,15 +1516,15 @@ static void indic_shape_syllable( int sc
if ((script == QFont::Malayalam || script == QFont::Tamil) && (form(reordered[0]) == Matra)) {
// need to find the base in the shaped string and move the matra there
- int prebase = 0;
- while (prebase < newLen && char_map[prebase] < base)
- prebase++;
- if (prebase == newLen)
- prebase = 0;
- if (prebase != 0) {
+ int basePos = 0;
+ while (basePos < newLen && char_map[basePos] < base)
+ basePos++;
+ if (basePos < newLen && basePos > 1) {
+ IDEBUG("moving prebase matra to position %d in syllable newlen=%d", basePos, newLen);
unsigned short *g = openType->glyphs();
unsigned short m = g[0];
- for (i = 0; i < prebase; ++i)
+ --basePos;
+ for (i = 0; i < basePos; ++i)
g[i] = g[i+1];
- g[prebase] = m;
+ g[basePos] = m;
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic