diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2010-12-12 16:33:12 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2010-12-20 12:28:12 (GMT) |
commit | 0189fc2335c891373ce595a4a01e4a9d73cc5fe4 (patch) | |
tree | 3c1997eaa72718423791e60a899fe5aff397b0d0 /src/3rdparty/harfbuzz | |
parent | 567bcd38dd7a749ac0bc3cdd2432798ab1af74fe (diff) | |
download | Qt-0189fc2335c891373ce595a4a01e4a9d73cc5fe4.zip Qt-0189fc2335c891373ce595a4a01e4a9d73cc5fe4.tar.gz Qt-0189fc2335c891373ce595a4a01e4a9d73cc5fe4.tar.bz2 |
Move advances for control character in Indic syllable shaping
When handling control characters (ZWJ, ZWNJ) in Indic syllables,
we only moved glyphs and attributes of the item, advances should
also be moved forward, otherwise we will use the advance of ZWJ/
ZWNJ for the part of syllable, which is normally zero, it results
some positioning problems.
Task-number: QTBUG-14204
Reviewed-by: Lars Knoll
Diffstat (limited to 'src/3rdparty/harfbuzz')
-rw-r--r-- | src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp b/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp index 4a618da..bbf479e 100644 --- a/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp +++ b/src/3rdparty/harfbuzz/src/harfbuzz-indic.cpp @@ -1683,6 +1683,7 @@ static bool indic_shape_syllable(HB_Bool openType, HB_ShaperItem *item, bool inv } item->glyphs[j] = item->glyphs[i]; item->attributes[j] = item->attributes[i]; + item->advances[j] = item->advances[i]; ++i; ++j; } |