Red Hat Bugzilla – Bug 115730
Font sizes are off
Last modified: 2007-11-30 17:10:36 EST
Description of problem:
Font sizes are off in Qt. When I select the exact same font with the
exact same size in Qt and GTK programs, the fonts in Qt are not the
same size as the GTK fonts. It is most visible at 8 pts, where the
Qt font will be much smaller than its GTK equivalent.
The GTK font size is the correct one. It is also the size of the old
Qt, the one that was present in FC1.
It has now become impossible to choose an 8 point Tahoma font the
same size as in Windows (I like that font size). 8 pts in Qt is too
small, and 9 pts is too big. So the font sizes in Qt are not simply
off by one, there are font sizes missing. Something weird is going
Version-Release number of selected component (if applicable):
To compare fonts, I simply start gnome-control-center and use the
Fonts section to browse fonts. In KDE I use kcontrol in the fonts
Created attachment 97687 [details]
Tahoma at size 8 in Qt and GTK
See that the font in Qt is smaller than the one in GTK.
Created attachment 97688 [details]
Luxi Sans (Fedora's default font) at size 8 in Qt and GTK
See that the font in Qt is again smaller than its equivalent in GTK.
could you please try qt-3.3.0 in rawhide. I don't see this problem
Nope, the problem is still there.
I verified with stock Qt and KDE compiled from source and the bug is
there. So this does not seem to be a problem with Red Hat's
One thing seems to solve (well, at least, modify it) the bug:
in /etc/X11/Xresources, comment out the
Ok, let's keep the DPI to 96. Commenting it out is actually not a
solution, as browsing the web quickly let me know.
I took a couple of screenshots to help diagnose the problem. All of
them with 96 dpi. What they were viewing:
First of all, the Windows screenshot. This is the benchmark. I took it
with Firefox, but Internet Explorer displayed exactly the same.
With Firefox in Linux. See that the font sizes are exactly the same as
Then with Qt. I tried with Konqueror, but this thing does weird things
with fonts and so I did not trust it. I created a Qt Designer file
with basically the same info: http://nomis80.org/fonttest.ui. Only the
Tahoma font at 9pt is wrong. But this is exactly the font I want!
This problem may not seem important, but if font sizes are wrong for
Tahoma 9pt, they very well might be for other fonts at other sizes.
And graphic designers can't rely on Qt programs on Fedora because of
that. So it is not a wishlist, but also not a very important bug.
Also, the problem is not with Red Hat packages because a stock Qt has
the same bug. So you may close this bug, I'll forward it to Trolltech.