diff --git a/src/gui/text/qfontdatabase_qpa.cpp b/src/gui/text/qfontdatabase_qpa.cpp index c0edce1009..3a578e746f 100644 --- a/src/gui/text/qfontdatabase_qpa.cpp +++ b/src/gui/text/qfontdatabase_qpa.cpp @@ -260,7 +260,7 @@ QFontDatabase::findFont(int script, const QFontPrivate *fp, FM_DEBUG(" NO MATCH FOUND\n"); } - if (engine) { + if (engine && engine->type() != QFontEngine::TestFontEngine) { initFontDef(desc, request, &engine->fontDef); if (fp) {