[SOLVED] Font rendering issues (kerning, etc.) with Firefox 52.7.0 and XFCE 4.12
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Font rendering issues (kerning, etc.) with Firefox 52.7.0 and XFCE 4.12
Hi,
I'm on Slackware64-14.2, using XFCE 4.12 desktop with Firefox 52.7.0. I have some problems with the way the fonts are displayed on some websites. As I move the mouse cursor the rendering of fonts slightly changes: letter spacing becomes different, kerning seems to change, and certain letters (b, d and such) are becoming thinner. This problem was also visible in previous Firefox versions.
I have created an animated gif illustrating that issue (see attachment below). This one is from the Mattermost web app, and I was simply moving the mouse cursor up and down along that menu (the cursor itself is not visible in the gif). I have noticed similar effects in several different websites, most notably on last.fm and Facebook.
I suspect this is a configuration error on my side, but unfortunately I have no clue what I should correct. I don't even know what search terms should I use to learn more about this subject (googling "firefox bad kerning" didn't return any results relevant to my case). I tried to use a fresh Firefox profile and the issue was still visible, so I guess that rules out Firefox configuration. Maybe something about fontconfig settings is wrong, or I didn't switch on something that is necessary?
For the record, these are the fontconfig settings enabled in /etc/fonts/conf.d/:
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
And, is this condition simply intolerable? It could be the font antialiasing setting. I don't know how to adjust that on your system. But it might be a path to investigate.
I have some problems with the way the fonts are displayed on some websites.
I have created an animated gif illustrating that issue (see attachment below). This one is from the Mattermost web app
...which leads me to assume that otherwise everything's OK.
i would try to narrow it down:
try different browsers & versions, different sites.
maybe it is browser specific? maybe it is site (oops, sorry, "webapp") specific or javascript specific?
I investigated further. The issue is visible in Firefox 52.7.2 (ESR) and in 59.0.2. I can't reproduce it using latest version of Google Chrome. On the other hand, I don't see the issue in Firefox running in Windows 7 and Windows 10. So it looks like it's Firefox and Linux specific. This is not good.
I tested various antialiasing settings, without any visible effect on the issue. As for the websites, I'm actually noticing this in more websites now that I started paying more attention. I have no idea if it's related to Javascript. Maybe it is, I wouldn't be surprised.
And I wouldn't call this font issue "intolerable". It's just that somehing is clearly wrong, and I'd like to find a solution.
Have you tried removing 10-autohint.conf from /etc/fonts/conf.d? The patent for the bytecode interpreter has expired and has been automatically enabled in version of freetype 2.4 and beyond, there really is no use for the autohinter anymore. Not sure if it will fix your problem, but might be worth a try.
I keep looking at this topic and thinking, "Wow, I remember exactly this, but that was during Slackware 14-ish times".
Was this a clean install of 14.2 or an upgrade? Your conf.d directory looks a little different than mine. Here's my conf.d from a pretty recent install and updated 14.2:
At a glance, I confirm what Daedra wrote about 10-autohint. It also looks like you're missing 42-luxi-mono.conf and 60-liberation.conf. I would be more concerned with the missing liberation font settings than luxi mono, given your example gif.
there really is no use for the autohinter anymore. Not sure if it will fix your problem, but might be worth a try.
That was it! I disabled 10-autohint.conf, and this issue I described is gone now. Thanks!
Quote:
Originally Posted by Myk267
I keep looking at this topic and thinking, "Wow, I remember exactly this, but that was during Slackware 14-ish times". Was this a clean install of 14.2 or an upgrade? Your conf.d directory looks a little different than mine.
That was a fresh install of Slackware-14.2, but I wasn't happy with the way fonts appeared, so I must've changed something. I've had this (very dated...) site bookmarked for I don't remember how long: http://kev009.com/wp/2009/12/getting...n-gentoo-linux, and it looks like I was following this.
Now that 10-autohint.conf is gone, I had to change some options in XFCE Appearance menu to get my fonts to look better. Previously I had the autohinting set to "Full", but now I had to set it to "Slight". I was using this old setting for such a long time that now everything looks different and strange... Not in a bad way, just totally not what I was used to.
So it looks like I need to find some modern guide on how to configure font rendering in Linux... Does anyone know a good one?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.