Skip to content

Just saying... FreeType won

Guys, just wanted to share one thing... we struggled many years, we struggled a lot, over a decade, fonts in Linux were ugly, we were doing dozens tweaks, compiling FreeType/Fontconfig manually and it still looked bad.

But now... we won. For a couple of weeks I'm switching between Windows 10 and Arch. And one thing I noticed almost immediately was how ugly fonts in Windows are. Different engines mixed together and it looks like a school project. Blurry even after tweaks, getting a sharp console is almost a mission impossible.

So... Just wanted to give credit to people behind FreeType. Great work, guys. Thank you.

534 points58 comments
Open on Reddit
About this post
Posted
Archived
Score
534 · 97% up
Kind
Text
ID
pcvlts

63 comments

All it took was waiting around a decade for the hinting patents in TrueType to run out. Not to completely dismiss the work of the FreeType team, they've always done the best they legally could.

196 points
unknown author11 hidden

Deleted before we saved it.

70 points

I'm sorry. I can't hear you over the sound of me patenting the idea of breathing.

P.S. If you do not cease and desist your breathing, we will be forced to take action. Unless you are outside the country of the free.

83 points

Yes, but then the resulting binaries could not be distributed to end users in those countries.

17 points

It's what Ubuntu did for years - Canonical is UK based, so they didn't have to care about it and had great font rendering since I think 2010.

11 points

also joined effort which is rare in opensource unity is strong, like the linux kernel, blender etc

9 points
unknown author

Don't forget the invention of the Harmony subpixel rendering algorithm.

4 points

I had a bunch of tweaks in my system from around 10 years ago. It had been a royal pain to set them up, but fonts were beautiful.

A few weeks back I checked, and all the values I had picked are now the defaults, it was safe to drop all of it. _^

132 points
unknown author2 hidden

Precisely. After each installation first thing I always did was fixing the fonts... all those Fedora Core 3 etc. :-)

32 points

The major jump was in 2016(?) when the relevant Microsoft patents expired and the Infinality branch gradually got merged. Though I've got to say, fontwise both Microsoft & Apple pack some pretty great ones, like Bahnschrift or 游教科書体 in macOS.

22 points

One of the first things I do on new laptops is extract all of the fonts from the default Windows install and build all of the ttf-ms-win10 font packages, they really do look great compared to the common packages like ttf-liberation or ttf-dejavu. Consolas is easily one of my favorite terminal fonts of all time, though Cascadia Code is giving it a run for its money with solid programming ligature support.

edit: a little bit of self promotion here, I wrote a shim that will satisfy the ttf-liberation dependency with ttf-ms-win10 and allows you to completely remove all of the usual base font packages (ttf-liberation, ttf-dejavu, etc) once you've installed the M$ fonts. I've been using it since October or so, I just pushed it to the AUR tonight in case anyone else wants to use it as well: https://aur.archlinux.org/packages/ttf-defenestration/

It bugged the hell out of me that certain packages (I'm looking at you, Chromium) specifically depend on ttf-liberation when they're perfectly fine using M$ fonts (and probably others.)

7 points

I just installed Arch again and still had to add following tweak to font config to make it look right:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <match target="font">
        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintslight</const>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
        <edit name="rgba" mode="assign">
            <const>rgb</const>
        </edit>
        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>
    </match>
</fontconfig>
0 points
unknown author3 hidden

It's not necessary, go to /etc/fonts/conf.d and see the symlinks. It's the preferred way of configuring fontconfig. And yes... doing some ln -sf /usr/share/fontconfig/conf.default/... is fine.

1 points
unknown author8 hidden

Deleted before we saved it.

49 points

If you use CJK fonts Windows they look terrible out of the box. At least they did back in Win 7 (I think that's the last time I used it).

15 points

Much of it still does since Redmond's eternal wisdom still has them ship the msgothic bitmap font and use it as default for smaller fontsizes. Only if you delete it manually it'll fall"back" to a newer font.

5 points

Well-written Windows software can do per-monitor scaling. That includes web browsers, Office (at least the main window), and many other things. Linux, on the other hand... I just run my laptop at a lower resolution at 100% scale, because Wayland doesn't play well with anything, and Xorg has one global scale.

3 points

I have a bgr pixel layout, so both Windows & Linux require configuration for me. Windows needs a registry tweak to enable it.

2 points
unknown author

Deleted before we saved it.

1 points

Aside from it being noticeably worse on every monitor or laptop I ever used (in comparison to stock and modified fontconfig on linux), Windows fonts also make my eyes tired much faster (like 10 minutes vs few hours).

Windows fonts, blurry or not, are just off on any screen, because they use grayscale antialiasing, meanwhile UNIX world usually uses subpixel antialiasing - it makes huge difference.

1 points

And one thing I noticed almost immediately was how ugly fonts in Windows are. Different engines mixed together and it looks like a school project. Blurry even after tweaks, getting a sharp console is almost a mission impossible.

FreeType is a good project, definitely. But I wonder if you and I are running the same Windows, because typefaces are perfect on mine. ClearType subpixel AA is very powerful, and creates far sharper text than any other OS.

macOS is a blurry mess because of full-pixel greyscale AA, and Linux is still iffy because of the constant wheel reinvention.

21 points

often on 1080p windows computers i noticed the font look good e x c e p t some older dialogue boxes that suddenly look like they have lower resolution ( usually older installers / programs ), idk whats the issue with it

1 points
unknown author

Deleted before we saved it.

13 points

As someone who has been using linux only for around 1 year, I never understood all the comments that I saw people say about fonts in linux being horrible. Since I started using linux, fonts always looked good enough that it was something I never thought about it or even notice a difference between windows and linux. The only time I had to go through the rabbit hole of configuring fonts was when I first installed Arch with a tiling window manager and of course, fonts looked horrible. Recently I reinstalled Arch with KDE and I didn't have to do anything, everything looked good. I guess that installing just a WM doesn't install all the dependencies to get proper font rendering.

7 points

The only time I had to go through the rabbit hole of configuring fonts was when I first installed Arch with a tiling window manager and of course, fonts looked horrible.

Maybe explain briefly the solution to having super crisp fonts when using a WM? Mine always look like crap even on a 1080p screen.

3 points

When I started to use Arch Linux back in 2017, I applied the Infinality patches for better font rendering. 10 year ago, the situation (aside from some distros) was not even better.

Glad to see the patches were merged into mainline FreeType and today we can enjoy the good font rendering as default.

7 points

and while you're shouting out the freetype guys, be sure to give the harfbuzz devs some love as well!

and while you're shouting out the harfbuzz guys, be sure to give the freetype devs some love as well!

and while you're shouting out the freetype guys, be sure to give the harfbuzz devs some love as well!

and while you're shouting out the harfbuzz guys, be sure to give the freetype devs some love as well!

and while you're shouting out the freetype guys, be sure to give the harfbuzz devs some love as well!

and while you're shouting out the harfbuzz guys, be sure to give the freetype devs some love as well!

WARNING: dependency cycle detected.
WARNING: freetype devs will be thanked before their harfuzz contributors.

7 points

Honestly, i find linux fonts annoying as hell. 99% of them are identical, as far as i can tell. I have a massive list of fonts, all with different names, that are exactly like most of the others. What the hell is the point?

3 points

I had a bug in st the other day where it would crash after starting. Turns out it was because I copied some fonts from somewhere and they overlapped with some I had installed and st's font2 patch didn't accurately choose one or fallback. It's weird right?

2 points

OpenSans, Liberation Sans, DejaVu Sans (open source), Arial (Microsoft) and Helvetica are all very similar for example. This is because OpenSans and Liberation Sans were basically designed to be drop ins for Arial, which itself was designed to be offbrand Helvetica. Meanwhile DejaVu are aiming for high coverage rather than a distinctive look.

Install enough applications and you'll basically end up with all of them. The same thing happens for serif, monospace and a couple of subgenres of sans-serif and you end up with a lot of fonts.

It's very easy to get a similarly giant list on MacOS and Windows though. Install Office and the Adobe Suite on a PC or Mac and get their default list added to the OS font list and all of the sudden you have 100s there too. It's not really possible to have 100s of fonts be all distinctive and strikingly different.

2 points

It might be that they are CJK (or some other language) fonts, so latin characters will be rendered with the same font.

1 points

Yes, Linux has come a long way in font quality. This is not just about FreeType.

And I have to say again one point. There are many people which hate r/unixporn that is wasting of time etc.

The beautiful font is mainly thanks to these /nixporn people who strive daily to improve the system and visual quality. Every general change requires a large number of small attempts.

3 points

Yeah, I noticed that too!

For some reason, on windows, on different monitors fonts look different. Like kinda ok on main monitor and absolute dogshit on secondary. And then I reboot to linux and it's just beautiful. Just clean colors, not blocky, doesn't separate into 2 distinct colors. All of this in the same app - discord.

2 points

Not only that, things like fractional scaling are way better in things like KDE with sharp fonts and properly scaled UI instead of the blurry mess that is on Windows.

2 points

MacOS still looks better unfortunately, i love my hackintosh for that

1 points

I might be doing something wrong, such as not connecting a 1k USD display to my apple device but out of all the options macos fonts looks the worst to me.

3 points

MacOS fonts on Linux? Yeah, it's not the font rendering environment they're designed for. The default font rendering (because this is Linux, everything is customizable) is much closer to Windows style, which is why the MS fonts tend to fit into a Linux desktop much better than Mac fonts.

https://blog.codinghorror.com/font-rendering-respecting-the-pixel-grid/

Higher resolution displays render a lot of the debate over which one is better less relevant, but some parts remain evident, such as the generally bolder/heavier font rendering on OS X.

1 points

Just lending to archlinux after years of Debian/Ubuntu and never deep dive into the font ecosystems, just used the default ones provided by the distro. What is your standard setup on Arch ?

1 points

IMO I don't have much issue with getting Linux fonts to look good. My biggest issue is having the right fonts so websites look good. I am so used to how websites look with Windows fonts. Sometimes the font choices and sizes are just so off that it feels jarring to look at.

1 points

Blurry fonts on Windows?? Windows has the most crisp and sharp font rendering ever created thanks to ClearType plus linear gamma correction (which Linux lacks) and plus some manual tweaks here and there. FreeType is good but it has limitations and is nowhere near as complete.

1 points

They are still ugly. I have to follow a guide everytime to make UI fonts look half decent and forget about the fonts on sites like reddit, youtube comment, in general.

Maybe you have a 4k display. I can say this with confidence that fonts on Windows 10 are way better and crispier than any linux distro out there. It is what it is.

-5 points
unknown author

Deleted before we saved it.

1 points

I have no issues with fonts in Linux. Earlier I used to spend more time on Windows mostly because of proprietary software. Now I use mostly Linux

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.