1 --- qt-everywhere-opensource-src-4.7.0/src/gui/text/qfontdatabase_x11.cpp.orig 2010-09-10 11:05:25.000000000 +0200
2 +++ qt-everywhere-opensource-src-4.7.0/src/gui/text/qfontdatabase_x11.cpp 2010-09-21 21:46:24.295720986 +0200
4 ****************************************************************************/
6 #include <qplatformdefs.h>
8 +#include <qsettings.h>
10 #include <qpaintdevice.h>
11 #include <qelapsedtimer.h>
12 @@ -1471,8 +1471,11 @@
15 FcPatternAddInteger(pattern, FC_WIDTH, stretch);
18 + bool qt_use_antialiasing = prefs.value( "/qt/useXft", TRUE ).toBool() ;
20 - if (X11->display && QX11Info::appDepth(screen) <= 8) {
21 + if (X11->display && (QX11Info::appDepth(screen) <= 8) || ! (qt_use_antialiasing)) {
22 // can't do antialiasing on 8bpp
23 FcPatternAddBool(pattern, FC_ANTIALIAS, false);
24 } else if (request.styleStrategy & (QFont::PreferAntialias|QFont::NoAntialias)) {