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:
parent
7daf0ea581
commit
a8818d3346
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user