[Bug 1054071] New: font hinting not used when antialiasing is off
http://bugzilla.suse.com/show_bug.cgi?id=1054071 Bug ID: 1054071 Summary: font hinting not used when antialiasing is off Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: xorg-maintainer-bugs@forge.provo.novell.com Reporter: pgajdos@suse.com QA Contact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- Created attachment 736886 --> http://bugzilla.suse.com/attachment.cgi?id=736886&action=edit screenshot
From the screenshot, you can see that font in e. g. firefox tab descriptionsor or on the page itself, or also on window captions (icewm), seem to be rendered without hinting. Correct output I would expect is for example in yast window or gpicview dialog (also see screenshot).
I use Liberation Sans (well instructed font) with antialiasing off, which leads to sharp fonts. $ fc-match -v sans | grep 'family:\|alias\|hint' family: "Liberation Sans"(s) antialias: False(w) hintstyle: 3(i)(w) hinting: True(w) autohint: False(w) force_hintstyle: "none"(w) force_autohint: False(w) search_metric_aliases: True(w) $ It does not look like freetype issue, as ftview renders glyphs correctly (see the screenshot). It also does not look like this is just firefox issue as window captions of the IceWM suffer too. gtk application (gpicview) has menu rendered correctly. This happened during some Tumbleweed update I made in august. I am sure I have not change any font setting. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1054071 http://bugzilla.suse.com/show_bug.cgi?id=1054071#c1 Michal Srb <msrb@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED CC| |msrb@suse.com, | |pgajdos@suse.com Assignee|xorg-maintainer-bugs@forge. |msrb@suse.com |provo.novell.com | Flags| |needinfo?(pgajdos@suse.com) --- Comment #1 from Michal Srb <msrb@suse.com> --- The new thing in Tumbleweed is fontconfig 2.7 which brings version 40 of the hinting engine. Version 40 is trying to look more like ClearType on Windows and it ignores horizontal hinting, see here: https://www.freetype.org/freetype2/docs/subpixel-hinting.html The results look more or less acceptable if antialiasing is enabled, but without antialiasing they look pretty bad - like if no hinting was enabled. So if you disable antialiasing you may also want to switch to version 35. It can be done by setting environmental variable: FREETYPE_PROPERTIES="truetype:interpreter-version=35" It would be great if it could be done using a fontconfig configuration, but AFAIK it is not possible yet. In my personal opinion, it would be best to keep using 35 by default, but that means going against upstream and we would need some community agreement on it. However, the fact that some applications look fine on your system and ftview shows "engine: v35" on your screenshot makes me think that you already found about this variable and set it, but for some reason it does not work in all applications. Can you share your font configuration? Any changes you did in /etc/fonts/conf.d, ~/.fonts.conf, .fonts.conf.d, environmental variables, etc. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1054071 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|X.Org |Other QA Contact|xorg-maintainer-bugs@forge. |qa-bugs@suse.de |provo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1054071 http://bugzilla.suse.com/show_bug.cgi?id=1054071#c2 Petr Gajdos <pgajdos@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #2 from Petr Gajdos <pgajdos@suse.com> --- This is my .config/fontconfig/fonts.conf: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <alias> <family>sans-serif</family> <prefer> <family>Liberation Sans</family> </prefer> </alias> <alias> <family>serif</family> <prefer> <family>Liberation Serif</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Liberation Mono</family> </prefer> </alias> <match target="font"> <test name="family" compare="contains"> <string>Liberation</string> </test> <test name="pixelsize" compare="less_eq"> <double>14.0</double> </test> <edit name="antialias" mode="assign"> <bool>false</bool> </edit> </match> </fontconfig> Otherwise I use distro default font setting. But indeed, I completely forgot about the fact, that I have experimented with FREETYPE_PROPERTIES which I have set in my .bashrc: export FREETYPE_PROPERTIES="truetype:interpreter-version=35" I noticed that approx. in the same time my .bashrc is not sourced when I log in to my tumbleweed machine, so I guess that will be the culprit -- FREETYPE_PROPERTIES is sometimes not set. Thanks Michal! *** This bug has been marked as a duplicate of bug 1052182 *** -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1054071 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pgajdos@suse.com) | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com