diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-02-24 12:18:36 (GMT) |
---|---|---|
committer | Qt Commercial Integration <QtCommercial@digia.com> | 2012-01-31 10:24:41 (GMT) |
commit | 7c0252a004d93e3b1ac19f367017a6bcf5baf265 (patch) | |
tree | 4662812b2449fa2ac819a9444881c677b9561947 /src/gui | |
parent | 7c6e3f75e0b593f6a0eb32973041150657d593a2 (diff) | |
download | Qt-7c0252a004d93e3b1ac19f367017a6bcf5baf265.zip Qt-7c0252a004d93e3b1ac19f367017a6bcf5baf265.tar.gz Qt-7c0252a004d93e3b1ac19f367017a6bcf5baf265.tar.bz2 |
Stop using XLFD as fontconfig matching fallback
Following our kill list of moving away from XLFD, and since
the result of XLFD is unreliable and problematic (it requires
maintainence of fonts.dir/fonts.alias which people no longer
care about), remove the usage of XLFD as a fallback for fontconfig
matching.
Task-number: QTBUG-17455
Reviewed-by: Eskil
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/text/qfontdatabase_x11.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/text/qfontdatabase_x11.cpp b/src/gui/text/qfontdatabase_x11.cpp index 70f72eb..1604876 100644 --- a/src/gui/text/qfontdatabase_x11.cpp +++ b/src/gui/text/qfontdatabase_x11.cpp @@ -1958,17 +1958,6 @@ void QFontDatabase::load(const QFontPrivate *d, int script) #ifndef QT_NO_FONTCONFIG } else if (X11->has_fontconfig) { fe = loadFc(d, script, req); - if (fe != 0 && fe->fontDef.pixelSize != req.pixelSize && mainThread && qt_is_gui_used) { - QFontEngine *xlfdFontEngine = loadXlfd(d->screen, script, req); - if (xlfdFontEngine->fontDef.family == fe->fontDef.family) { - delete fe; - fe = xlfdFontEngine; - } else { - delete xlfdFontEngine; - } - } - - #endif } else if (mainThread && qt_is_gui_used) { fe = loadXlfd(d->screen, script, req); |