TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The sad state of font rendering on Linux

16 pointsby neveroddoreven8 months ago

12 comments

tadfisher8 months ago
Almost all of this is out-of-date with newer freetype/fontconfig/toolkits. Subpixel positioning is a default thing on most distros, grayscale AA is the sane distro default (due to the proliferation of alternative subpixel layouts), and Harfbuzz shaping has become near-universal.
politelemon8 months ago
I don't agree that this should be flagged. Put the year in the title, that's all. Blog posts go out of date all the time, the OSes simply have different issues now.
zzo38computer8 months ago
I have some problems with fonts on Linux, but none of the stuff mentioned there is the stuff that I care much about (compared with the other problems I have). Problems I have is that some programs are not capable of using bitmap fonts (some, such as Firefox, can use bitmap fonts in some places but not in others), and some programs are incapable of using non-Unicode fonts. (Newer programs might also support colourful emoji, which I also don't want, but fortunately I do not that problem because I do not have any such programs on my computer.)
DDayMace8 months ago
So I'm sorry to hear about some of the problems with Linux font rendering in this article, it goes beyond my knowledge. I want to say though as a user, I have, between Linux, Mac and Windows machines over the years, literally always preferred Linux font rendering over cleartype and now even Mac not caring about lower resolutions and non-mac screens. You shouldn't need a 4k screen to get crisp and smooth fonts and sometimes even when you do they still look like shit, especially cleartype.
rasse8 months ago
I know it&#x27;s subjective but...<p>Font rendering with ClearType on Windows used to be so awful you had to install an external library[0] to get something closer to a Mac experience.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;CoolOppo&#x2F;GDI-PlusPlus">https:&#x2F;&#x2F;github.com&#x2F;CoolOppo&#x2F;GDI-PlusPlus</a>
M95D8 months ago
The author focuses on ClearType and other methods of rendering size-accurate and style-accurate fonts, but blurry text. I hate blurry text, with or without color fringing. I am willing to sacrifice size and glyph style for text clarity&#x2F;sharpness, while the article author, apparently does not. We all have different preferences.<p>Now, some technical comments:<p>It is physically impossible to render size-accurate characters on a bitmap display and not have blurry text. If the font size means the line of &quot;l&quot; should be 1.5 pixels wide, then there&#x27;s only two possibilities to render sharp text: make it 1px wide or make it 2px wide. Any of these two choices doesn&#x27;t respect font size (1.5), and any other rendering method means at least one pixel column that is some form of gray or color fringing. On LCDs with vertically alligned sub-pixels, even 1px has fringing, but at least it&#x27;s sharp.<p>Traditionally Windows fonts were manually hinted and had rendering limitations on size. This way, all characters kept the same line thickness regardless of character line angles. And at the same time, to prevent ugly rendering, fonts weren&#x27;t available in all sizes. Sizes that didn&#x27;t have hinting info weren&#x27;t available.<p>For example, there is was no Arial size 13, 15 or 17. The glyph lines would be 1px wide for sizes 8 to 14 and then suddenly jump to 2px thickness at size 16. That prevented blurry text or characters where line thickness varies whithin the same character or between characters of the same size.<p>Manual font hinting takes DAYS for a single character! It&#x27;s almost like making bitmap fonts. Linux didn&#x27;t (and still doesn&#x27;t) have hinted fonts. Because of that, Linux doesn&#x27;t restrict font sizes. Not even for fonts that <i>are</i> hinted. All sizes are available. This leads to: 1) blurry fonts with aliasing and sub-pixel rendering or 2) ugly text where line thickness varies randomly between characters or even within the same character.<p>There is no solution and there can&#x27;t be any, because restricting font sizes to just those with hinting info excludes the vast majority of Linux fonts, which have no hinting at all, at any size. The only way to make text look decent is to enable antialiasing that causes blurry text and&#x2F;or sub-pixel rendering which causes color fringing.<p>Hardware will, once again, save us from the crippled sorry state of the software. Once hi-dpi displays become common, this won&#x27;t be a problem anymore. Character lines can be several px wide and a variation of one extra px here and there in line thickness won&#x27;t matter anymore.
init2null8 months ago
This is giving me flashbacks to the days of bad fonts and bad rendering. Back when using the web on Linux was a totally different and grossly inferior experience.<p>At least we can still simu late it whenwe get n0staIgic.
daoistmonk8 months ago
After following the advice in this article [1] to my eyes, my linux fonts look better than my MacBook&#x27;s.<p>tldr: &quot;FREETYPE_PROPERTIES=&quot;cff:no-stem-darkening=0 autofitter:no-stem-darkening=0&quot;<p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41643573">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41643573</a>
greenthrow8 months ago
This is a terrible post. Most professional typesetters&#x2F;publishers use macOS for a reason and have for decades.<p>Also this blog post is 5 years old and woefully out of date anyway.
评论 #41812788 未加载
nixosbestos8 months ago
Oh come on, put the date in the headline. I have none of these kerning issues on my boxes.
butz8 months ago
Font rendering on GTK3 was pretty decent, I&#x27;d say on par with Windows and better than Mac (without retina screen). Then GTK4 was released and fonts looked ugly for quite a while. Now they have been improved, but still not at GTK3 level. But hey, now you can rotate text, for whatever reason.
slater8 months ago
&quot;For decades OS X remained a very ugly baby&quot;<p>wtf...? I know it&#x27;s only their opinion, but jeez that is one hot take.<p>I&#x27;ve been using OSX&#x2F;macOS since ~2005, and in comparison, Windows (and heaven forbid you had to use Linux) had the absolute worst font rendering ever. Even today it looks horrible.<p>Update:<p>Hah, just read their FAQ, quote:<p>&quot;Q: Why bother, just buy a HiDPI screen?<p>A: In my opinion and experience, HiDPI is a niche gimmick similar to 3D movies.&quot;<p><a href="https:&#x2F;&#x2F;pandasauce.org&#x2F;get-fonts-done&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pandasauce.org&#x2F;get-fonts-done&#x2F;</a>
评论 #41812761 未加载
评论 #41812712 未加载
评论 #41812713 未加载