Skip mixedScript test on platforms with no Hangul font

This test depends on the system actually supporting Korean
text, otherwise it will just return a single glyph run with
the digit and the missing glyph symbol.

Pick-to: 6.5 6.6
Fixes: QTBUG-118649
Change-Id: I54e55414ae4ba0a6328c7c3a57ae8840d3b123b1
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2023-11-01 09:07:07 +01:00
parent 58c7249ee8
commit c5b3fd134b
2 changed files with 3 additions and 7 deletions

View File

@ -1,7 +0,0 @@
# QTBUG-68860
[mixedScripts]
ubuntu-18.04
ubuntu-20.04
ubuntu-22.04
# QTBUG-100928
qnx

View File

@ -563,6 +563,9 @@ void tst_QGlyphRun::boundingRect()
void tst_QGlyphRun::mixedScripts()
{
if (QFontDatabase::families(QFontDatabase::Korean).isEmpty())
QSKIP("This test requires support for Hangul text");
QString s;
s += QChar(0x31); // The character '1'
s += QChar(0xbc14); // Hangul character