QFontDatabase: Output family in warning about missing Open Type support

OpenType support missing for script 11
becomes:
OpenType support missing for "SimSun", script 11

Change-Id: I562e20d630c9cdd888f75fd99b987de5152cd77e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Friedemann Kleint 2017-07-25 09:49:13 +02:00
parent 7daf0ea581
commit a8818d3346

View File

@ -948,7 +948,8 @@ QFontEngine *loadSingleEngine(int script,
if (engine) {
// Also check for OpenType tables when using complex scripts
if (Q_UNLIKELY(!engine->supportsScript(QChar::Script(script)))) {
qWarning(" OpenType support missing for script %d", script);
qWarning(" OpenType support missing for \"%s\", script %d",
qPrintable(def.family), script);
return 0;
}
@ -972,7 +973,8 @@ QFontEngine *loadSingleEngine(int script,
if (engine) {
// Also check for OpenType tables when using complex scripts
if (!engine->supportsScript(QChar::Script(script))) {
qWarning(" OpenType support missing for script %d", script);
qWarning(" OpenType support missing for \"%s\", script %d",
+ qPrintable(def.family), script);
if (engine->ref.load() == 0)
delete engine;
return 0;