diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-11 22:15:41 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-11 22:15:41 (GMT) |
commit | 0e9a6c97a0bc25d98e257dc7df1b0389ed308c72 (patch) | |
tree | 12b45f35d87450a83191b347d5328472d601ce33 /tests | |
parent | 6e16cc33983c9ed2c8362f0d31ef712df7949375 (diff) | |
parent | 0a2637b846c4bae5f0fe8eb50587c4b3194ae1e7 (diff) | |
download | Qt-0e9a6c97a0bc25d98e257dc7df1b0389ed308c72.zip Qt-0e9a6c97a0bc25d98e257dc7df1b0389ed308c72.tar.gz Qt-0e9a6c97a0bc25d98e257dc7df1b0389ed308c72.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
Only test control character handling in X11
Compile when qreal != double
Make application font family names locale sensitive in X11
Rename QTextBlockFormat::AtLeastHeight -> MinimumHeight
Add line spacing to QTextBlockFormat, get/set functions, CSS support
Optimize texture glyph cache
Disable certain GPOS features by default
Move advances for control character in Indic syllable shaping
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp b/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp index 0a7458f..88212c6 100644 --- a/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp +++ b/tests/auto/qtextscriptengine/tst_qtextscriptengine.cpp @@ -103,6 +103,7 @@ private slots: void khmer(); void linearB(); + void controlInSyllable_qtbug14204(); }; tst_QTextScriptEngine::tst_QTextScriptEngine() @@ -1111,6 +1112,26 @@ void tst_QTextScriptEngine::greek() #endif } +void tst_QTextScriptEngine::controlInSyllable_qtbug14204() +{ +#if defined(Q_WS_X11) + QString s; + s.append(QChar(0x0915)); + s.append(QChar(0x094d)); + s.append(QChar(0x200d)); + s.append(QChar(0x0915)); + + QTextLayout layout(s); + QTextEngine *e = layout.d; + e->itemize(); + e->shape(0); + + QVERIFY(e->layoutData->items[0].num_glyphs == 2); + QVERIFY(e->layoutData->glyphLayout.advances_x[1] != 0); +#else + QSKIP("X11 specific test", SkipAll); +#endif +} QTEST_MAIN(tst_QTextScriptEngine) #include "tst_qtextscriptengine.moc" |