Red Hat Bugzilla – Bug 451016
Qt3 xft'less font rendering is completely broken
Last modified: 2008-06-19 13:13:34 EDT
Description of problem: I need to run some Qt3 applications with disabled libXft
font rendering. After upgrading from Fedora 8 to Fedora 9 all those applications
stopped working correctly. Instead of fonts I see some unreadable garbage.
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce:
1) install g++, qt3 and qt3 devel
2) cat main.cpp
static bool s_antialias;
class MyWidget : public QFrame
MyWidget(QWidget *parent = 0);
void setVTFont(const QFont& f);
MyWidget::MyWidget(QWidget *parent) : QFrame(parent)
s_antialias = true;
QLabel *label = new QLabel("This is sample text", this);
QPushButton *button = new QPushButton("Change Font...", this);
connect(button, SIGNAL(clicked()), this, SLOT(editFont()));
QVBoxLayout *layout = new QVBoxLayout(this);
QFont font = QFontDialog::getFont(
&ok, QFont( "Helvetica [Cronyx]", 10 ), this );
void MyWidget::setVTFont(const QFont& f)
QFont font = f;
font.setStyleStrategy( QFont::NoAntialias );
int main(int argc, char *argv)
QApplication app(argc, argv);
MyWidget *widget = new MyWidget;
if(str == "--noxft")
s_antialias = false;
Actual results: Garbage
Expected results: Normal font rendering
Additional info: I have tested this problem with nv and nvidia drivers.
Created attachment 309057 [details]
This is how fonts are rendered by Qt3 without libXft
My GPU is NVIDIA 8800GT.
1) With vesa video driver everything works fine (alas, the user interface is
very unresponsive and everything feels sooooo slow).
2) With *nv* and nvidia drivers everything is broken.
3) I haven't test noveou driver because I run vanilla 184.108.40.206 kernel with no
4) After I have downgraded to xorg-x11-server-Xorg-220.127.116.11-33.fc8.i386
everything works fine with *any* driver, thus the culprit is *definitely* the
new X.org server.
This bug is *not* reproducible on any hardware other than 8 series of NVIDIA GPU's.
Created attachment 309082 [details]
KDE3 konsole (run with --noxft) with Xserver 1.5
can you upgrade to the latest F9 server here:
It should be in updates quite soon and lets us know if it still happens?
I will notify you as soon as I upgrade.
I have the same problem with fonts on F9. I have upgraded to latest xorg server
and still have this problem. I ran the application and get smudged fonts with
either --noxft or changing the font to something like Console. I have an
nVidia Quadro-FX 570M (thinkpad) using nvidia driver. I have been pursuing a
similar bug in wine with font rendering.
The X.org update from comment #4 hasn't changed anything. The problem persists.
I can confirm the same font problem when using the proprietary NVidia driver.
The problem is solved (both for the QT application cited above, and crossover
office) by using the (open source) 'nv' Xorg driver (instead of the proprietary
Incidentally, NVidia seems to be working on fixing the proprietary driver:
Quote: "This is a known issue that will be fixed in the next driver release."
For the record, I'm running Fedora 9 x86_64, on a dell laptop with an NVidia
Quadro NVS 135M video card (using nvidia proprietary driver version 173.14.05).
I suggest closing the ticket, since the resolution seems to be squarely in
NVIDIA 173.14.09 driver has solved the issue but it still persists as for 'nv'
open source driver.