Bug 1052389
Summary: | Bad font rendering | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Sandro Mani <manisandro> | ||||
Component: | qt5-qtbase | Assignee: | Than Ngo <than> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | ahmadsamir3891, erik-fedora, hobbes1069, inglessi, jreznik, kevin, ltinkl, pahan, rdieter, rnovacek, than | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-11-10 14:07:56 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1072126 | ||||||
Attachments: |
|
Description
Sandro Mani
2014-01-13 18:27:06 UTC
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! :) |