From 3a8d7b0b9a4db91415b7bda2582a59a76b3754dc Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 25 Jun 2012 00:18:10 +0200 Subject: Remove all references to XLFD fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit XLFD fonts are no longer supported in Qt 5. Change-Id: I83400dab417c933d5cd956c0d168c45b9d79dab7 Reviewed-by: Casper van Donderen Reviewed-by: Samuel Rødal --- src/gui/text/qfontdatabase.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/gui/text/qfontdatabase.cpp') diff --git a/src/gui/text/qfontdatabase.cpp b/src/gui/text/qfontdatabase.cpp index b8e1e0cc3b..4b8a18d491 100644 --- a/src/gui/text/qfontdatabase.cpp +++ b/src/gui/text/qfontdatabase.cpp @@ -322,8 +322,7 @@ struct QtFontFamily Unknown = 0, Supported = 1, UnsupportedFT = 2, - UnsupportedXLFD = 4, - Unsupported = UnsupportedFT | UnsupportedXLFD + Unsupported = UnsupportedFT }; QtFontFamily(const QString &n) @@ -724,7 +723,7 @@ struct QtFontDesc static void match(int script, const QFontDef &request, const QString &family_name, const QString &foundry_name, int force_encoding_id, - QtFontDesc *desc, const QList &blacklistedFamilies = QList(), bool forceXLFD=false); + QtFontDesc *desc, const QList &blacklistedFamilies = QList()); static void initFontDef(const QtFontDesc &desc, const QFontDef &request, QFontDef *fontDef, bool multi) { @@ -965,8 +964,7 @@ unsigned int bestFoundry(int script, unsigned int score, int styleStrategy, PitchMismatch = 0x4000, StyleMismatch = 0x2000, BitmapScaledPenalty = 0x1000, - EncodingMismatch = 0x0002, - XLFDPenalty = 0x0001 + EncodingMismatch = 0x0002 }; if (pitch != '*') { #if !defined(QWS) && defined(Q_OS_MAC) @@ -1025,7 +1023,7 @@ static bool matchFamilyName(const QString &familyName, QtFontFamily *f) */ static void match(int script, const QFontDef &request, const QString &family_name, const QString &foundry_name, int force_encoding_id, - QtFontDesc *desc, const QList &blacklistedFamilies, bool forceXLFD) + QtFontDesc *desc, const QList &blacklistedFamilies) { Q_UNUSED(force_encoding_id); @@ -1056,7 +1054,6 @@ static void match(int script, const QFontDef &request, unsigned int score = ~0u; - Q_UNUSED(forceXLFD); load(family_name, script); QFontDatabasePrivate *db = privateDb(); -- cgit v1.2.3