diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index 61c93dc..56513e8 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -60,14 +60,14 @@ #include -// #define QFONTDATABASE_DEBUG +#define QFONTDATABASE_DEBUG #ifdef QFONTDATABASE_DEBUG # define FD_DEBUG qDebug #else # define FD_DEBUG if (false) qDebug #endif -// #define FONT_MATCH_DEBUG +#define FONT_MATCH_DEBUG #ifdef FONT_MATCH_DEBUG # define FM_DEBUG qDebug #else @@ -853,6 +853,7 @@ static int match(int script, const QFontDef &request, QtFontDesc *desc, const QList &blacklistedFamilies) { Q_UNUSED(force_encoding_id); + qDebug() << __FUNCTION__ << script << request.family << family_name << foundry_name; int result = -1; QtFontStyle::Key styleKey; @@ -923,9 +924,13 @@ static int match(int script, const QFontDef &request, score = newscore; *desc = test; } - if (newscore < 10) // xlfd instead of FT... just accept it + if (newscore < 10) { // xlfd instead of FT... just accept it + qDebug() << __FUNCTION__ << test.family->name; break; - } + } + } + qDebug() << __FUNCTION__ << result; + return result; }