static void match(int script, const QFontDef &request,
const QString &family_name, const QString &foundry_name, int force_encoding_id,
- QtFontDesc *desc, const QList<int> &blacklistedFamilies = QList<int>());
+ QtFontDesc *desc);
#if defined(Q_WS_X11)
static void getEngineData(const QFontPrivate *d, const QFontCache::Key &key)
*/
static void match(int script, const QFontDef &request,
const QString &family_name, const QString &foundry_name, int force_encoding_id,
- QtFontDesc *desc, const QList<int> &blacklistedFamilies)
+ QtFontDesc *desc)
{
Q_UNUSED(force_encoding_id);
QFontDatabasePrivate *db = privateDb();
for (int x = 0; x < db->count; ++x) {
- if (blacklistedFamilies.contains(x))
- continue;
QtFontDesc test;
test.family = db->families[x];
test.familyIndex = x;
&& test.family->name.compare(family_name, Qt::CaseInsensitive) != 0)
continue;
- uint score_adjust = 0;
-
// as we know the script is supported, we can be sure
// to find a matching font here.
unsigned int newscore =
QString(), styleKey, request.pixelSize,
pitch, &test, force_encoding_id);
}
- newscore += score_adjust;
if (newscore < score) {
score = newscore;