https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Bug ID: 1035486 Summary: Text renders fuzzy in Fedora 20 Product: Fedora Version: 20 Component: fontconfig Assignee: tagoh@redhat.com Reporter: alexhultman@gmail.com QA Contact: extras-qa@fedoraproject.org CC: fonts-bugs@lists.fedoraproject.org, i18n-bugs@lists.fedoraproject.org, pnemade@redhat.com, tagoh@redhat.com
Description of problem:
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce: 1. 2. 3.
Actual results:
Expected results:
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #1 from alexhultman@gmail.com --- Here is my initial report against GNOME: https://bugzilla.gnome.org/show_bug.cgi?id=707777
However, it's not a GNOME bug. Changing the default font hinting to slight is one proposed solution. See the GNOME bug report for more information, discussion and some rendered samples showing the difference from freetype-2.4 to freetype-2.5.
Thanks.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ccecchi@redhat.com Component|fontconfig |abattis-cantarell-fonts Assignee|tagoh@redhat.com |ccecchi@redhat.com
--- Comment #2 from Akira TAGOH tagoh@redhat.com --- <match target="font"> <test name="family" compare="eq"> <string>Cantarell</string> </test> <edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit> </match>
would works if you are expecting to change the default hint style to slight for Cantarell only (according to the discussion the above URL)
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #3 from alexhultman@gmail.com --- That would be a good start at least. But is it possible to assign hintslight per rasterizer instead of per font name? All OpenType fonts are fuzzy with the current hinting in freetype 2.5 with Adobe's new rasterizer for OpenType merged. However, as Cantarell is such a large part of the experience of Fedora I would love to have that font fixed at least. Can this land in time for Fedora 20?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #4 from Akira TAGOH tagoh@redhat.com --- For f20, no. final change deadline has been gone and GA is coming soon. plus, that change may possibly affects a lot of fonts and it would be risky to do from now.
You can try:
<match target="font"> <test name="fontformat" compare="eq"> <string>CFF</string> </test> <edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit> </match>
instead. that may needs to be tested widely in f21 development timeframe and get a feedback on it because how it looks like is subjective. that said having this kinda recipe per fonts are our policy in Fedora and that would be safe to make any changes. so if you are aware of any other issues, that would be good to file a bug against that problematic font packages unless this kinda changes is needed for a lot of packages.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Matthias Clasen mclasen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mclasen@redhat.com
--- Comment #5 from Matthias Clasen mclasen@redhat.com --- Can we get this into f21 now, then ? So it can get the wide testing it requires ?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #6 from alexhultman@gmail.com --- OpenSUSE 13.1 (GNOME) renders sharp text even though they have freetype 2.5 so obviously they have solved any issues they had.
<match target="font"> <test name="fontformat" compare="eq"> <string>CFF</string> </test> <edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit> </match>
This seems like a good solution -> getting all CFF fonts covered instead of having to enter rules for every single font. I don't know how to test this and I'm still on Fedora 19 but it seems legit?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #7 from Akira TAGOH tagoh@redhat.com --- (In reply to alexhultman from comment #6)
This seems like a good solution -> getting all CFF fonts covered instead of having to enter rules for every single font. I don't know how to test this and I'm still on Fedora 19 but it seems legit?
Unfortunately no, you can't. matching on fontformat has been implemented in 2.11.0 (strictly speaking from the devel snapshot of 2.10.94) and not yet planning to push an update for f19 or older. so you need to try it on f20 at this moment.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #8 from alexhultman@gmail.com --- No no, I'm not talking about trying this on Fedora 19 (the whole point of this bug report is that Fedora 19 already have perfectly sharp text). I was kind of wondering if you had written "pseudo code" or actually legit config that works.
How do I test this? Where do I put that config, in what files and how?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #9 from Akira TAGOH tagoh@redhat.com --- Created attachment 836286 --> https://bugzilla.redhat.com/attachment.cgi?id=836286&action=edit full recipe to test
just try to put the attached recipe under $HOME/.config/fontconfig/conf.d/
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Andy Wang dopey@moonteeth.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dopey@moonteeth.com
--- Comment #10 from Andy Wang dopey@moonteeth.com --- I tried that recipe and no go. fonts are still fuzzy. I'm not familiar enough with fontconfig to diagnose it though.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(dopey@moonteeth.c | |om)
--- Comment #11 from Akira TAGOH tagoh@redhat.com --- (In reply to Andy Wang from comment #10)
I tried that recipe and no go. fonts are still fuzzy. I'm not familiar enough with fontconfig to diagnose it though.
How did you test it? are you sure the font you saw is really Cantarell or any CFF fonts?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Christoph Höger choeger@umpa-net.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |choeger@umpa-net.de
--- Comment #12 from Christoph Höger choeger@umpa-net.de --- I can confirm the issue. Please note that "Monospace" is unaffected and looking crisp with hinting=full.
However, I dropped your attachment into fontconfig/conf.d/ and also got no result. I also tried ~/.fonts.conf.d/ ...
Is there anything I can help to sort that out?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Andy Wang dopey@moonteeth.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(dopey@moonteeth.c | |om) |
--- Comment #13 from Andy Wang dopey@moonteeth.com --- I did with Cristoph did. Dropped the recipe into .config/fontconfig/conf.d
Tried to do it globally in /etc/fonts/conf.d as well.
According to gnome tweak tool, my Window Titles and Interface fonts are Cantarell Bold and just Cantarell.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
AGS alxgrtnstrngl@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alxgrtnstrngl@gmail.com
--- Comment #14 from AGS alxgrtnstrngl@gmail.com --- Have you tried installing the 'freetype-freeworld' font rendering package from RPMFusion? I currently have it installed on all of my Fedora systems and I'm not experiencing the issues you describe when I use hint-slight.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Brian Marshall bmarsd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bmarsd@gmail.com
--- Comment #15 from Brian Marshall bmarsd@gmail.com --- (In reply to Akira TAGOH from comment #4)
<match target="font"> <test name="fontformat" compare="eq"> <string>CFF</string> </test> <edit name="hintstyle" mode="assign"> <const>hintslight</const> </edit> </match>
I could be wrong, but I think assigning hintstyle in fontconfig is overrided by gnome-settings-daemon/XSETTINGS. See https://bugs.freedesktop.org/show_bug.cgi?id=11838
I'm coming at this from the opposite direction (like fuzzy fonts, want hintmedium for CFF and hintslight for everything else). It seems like the crux of the issue is that with the new CFF rasterizer, CFF fonts are fuzzy at medium hinting and sharp at slight hinting, which is the opposite of all the other fonts.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Sam Thursfield ssssam@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ssssam@gmail.com
--- Comment #16 from Sam Thursfield ssssam@gmail.com --- Adding the conf.d snippet does fix Thunderbird, but doesn't fix window title bars or interface text in Gtk+ apps. That does suggest it's being overridden by XSETTINGS for Gtk+.
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Daniel L. daniell1@t-online.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |daniell1@t-online.de
--- Comment #17 from Daniel L. daniell1@t-online.de --- I've just upgraded two machines to F20 and now see this on both of them :( Most fonts are looking applicable with slight hinting. Changing the hinting with gnome-tweak-tool to medium or full reduces sharpness!
Please, can anyone change the urgency to high as this is an embarrassing issue for a distro like Fedora?
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
--- Comment #18 from Akira TAGOH tagoh@redhat.com --- just FYI, aside from XSETTINGS issue, abattiscantarell-fonts has a trick in 31-cantarell.conf to fallback to other fonts due to the glyph coverage in Cantarell font maybe with replacing the family name as the weak binding. for this reason, it may depends on the language how it works:
$ LANG=en_US.UTF-8 fc-match Cantarell Cantarell-Regular.otf: "Cantarell" "Regular" $ LANG=ja_JP.UTF-8 fc-match Cantarell VL-PGothic-Regular.ttf: "VL Pゴシック" "regular"
https://bugzilla.redhat.com/show_bug.cgi?id=1035486
Andrew Davis andrew@junglebase.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|fonts-bugs@lists.fedoraproj | |ect.org | CC| |andrew@junglebase.com
fonts-bugs@lists.fedoraproject.org