Description of problem: Font rendering looks bad compared to qt4. See i.e. [1]. Upstream tracker has to issue which seem relevant, see [2] and [3]. There is a proposed patch [4], I'm currently building a patched qt5-qtbase to see whether it helps. [1] http://smani.fedorapeople.org/qt4vsqt5.png [2] https://bugreports.qt-project.org/browse/QTBUG-32254 [3] https://bugreports.qt-project.org/browse/QTBUG-27106 [4] https://bugreports.qt-project.org/secure/attachment/37325/qt5-fonts.diff Version-Release number of selected component (if applicable): qt5-qtbase-5.2.0-2.fc21 How reproducible: Always
I think we wanted this against the main qt5-qtbase pkg, reassigning...
Whoops, yes definitely.
Unfortunately the patch does not seem to make any difference.
Try using the bundled (non-system) harfbuzz? (not sure if that is relevant or not here)
No difference unfortunately.
I just tested under gnome and, oddly, things look normal there. (OTOH, also on a fresh KDE installation font rendering is wrong). Is there a way to dump the active Xft settings to compare the values?
Mind testing qt5-qtbase-5.2.0-7+ builds from koji if they make any difference? 5.2.0-8 is building now. I backported a patch we use in qt(4) builds that unconditionally enables freetype lcdfilter support. I don't anticipate it making any difference for folks who do not have freetype-freeworld installed, but you never know.
Lacking that, comment #6 implies this may have something to do with default font preferences, one of more of these XSettings: Xft/Antialias Xft/Hinting Xft/HintStyle Xft/RGBA KDE uses fontconfig defaults (and ~/.config/fontconfig/fonts.conf overrides). Perhaps gnome (aka gnome-settings-daemon) overrides these fontconfig defaults?
Oh, and to answer Sandro's question, this may help: xrdb -query | grep Xft On my f19/f20 boxes in kde, I get: $ xrdb -query | grep Xft Xft.antialias: 1 Xft.dpi: 96 Xft.hinting: 1 Xft.hintstyle: hintmedium Xft.rgba: rgb (though I can't promise that I didn't customize this somewhere)
Unfortunately, no difference. On both KDE and Gnome I get $ xrdb -query | grep Xft Xft.antialias: 1 Xft.dpi: 96 Xft.hinting: 1 Xft.hintstyle: hintslight Xft.lcdfilter: lcddefault Xft.rgba: rgb Both have freetype-freeworld installed, with $ cat ~/.Xresources Xft.lcdfilter: lcddefault Also, both have qt5-qtbase-5.2.0-8.fc21.x86_64. See screenshot at http://smani.fedorapeople.org/qtcreator.png I should note that starting qtcreator on kde like $ qtcreator -style gtk+ and setting the gtk style to Adwaita in kcm_gtk results fonts in the shell elements (i.e. menus, buttons, dialogs) being correctly rendered, the editor font however still looks too "light".
Some more insight: apparently, font-rendering breaks as soon as there exists $HOME/.config/fontconfig/fonts.conf. On Gnome, such a file does not exist (even after tweaking the font settings with gnome-tweak-tool).
Seems like the "rgba" property in the fontconfig file is what causes the fonts to appear "thin", i.e. the portion <match target="font"> <edit mode="assign" name="rgba"> <const>rgb</const> </edit> </match> (regardless of which value is assigned to rgba). Removing it gives "thick" fonts again (though maybe somewhat less "smooth"?)
Hello. In https://bugreports.qt-project.org/browse/QTBUG-32254 a patch is reported to fix the issue, can it be included in the Fedora package? Thanks in advance.
I was initially just waiting for 5.4 to be released, is there some urgency?
It can wait for 5.4. (Also, I tested with a local build, fonts still look thin in qt5 apps with that patch). Thanks.
I found this upstream bug: https://bugreports.qt-project.org/browse/QTBUG-40971 I think it's the exact issue I see on my box and in the screen shot in #c0.
Looking at applying the latest patch in QTBUG-41590 on 5.4.0, that should help resolve all/most issues raised in this report.
%changelog * Mon Nov 10 2014 Rex Dieter <rdieter> 5.4.0-0.4.beta - Bad font rendering (#1052389,QTBUG-41590)
With 5.4.0-0.4.beta I get a cursor blinking like crazy, and in qt-creator double-clicking files from the project-tree fails to open them in the editor. These things did not happen with 5.4.0-0.3.beta. Haven't had a chance to debug further yet.
Odd, I find it hard to believe simply changing default gamma correction could cause that.
Created attachment 955870 [details] Changes Patch between 0.3 and 0.4 is somewhat larger, see attachment.
Indeed, that *is* a lot bigger than what was actually committed: http://pkgs.fedoraproject.org/cgit/qt5-qtbase.git/commit/?id=0a278efc524ea95890cf128a06aff35893db565d
yay, nice fonts again with qt5-qtbase-5.4.0-0.5.beta.fc22, thanks! :)