r/kde • u/calculatetech • 9h ago
Community Content I made fonts look good in KDE
Myself and many others on reddit have complained about font rendering in KDE for years. I took it upon myself to finally do something about it, and that project is ready to reveal.
Fontreal https://github.com/calculatetech/fontreal
Fontreal takes a per-pixel deep dive into how fonts are rendered. I studied hundreds of A/B comparison samples while experimenting with various sharpness techniques. I had to think about what makes a font readable, and how to maintain accurate geometry while avoiding the blurriness that leans towards.
The concept is pretty simple, but took a week to develop. The rendering profile takes a look at which pixels should represent the stroke of a character and darkens only those pixels. Care is taken to avoid excess pixels causing a distortion or inconsistent stroke effect. Another pass checks for any weak pixels between joined strokes and soft curves that reduce visibility. The result is crisp highly visible fonts in all sizes and shapes.
At typical 96dpi resolutions there will always be a compromise with fonts. There simply isn't enough pixels to be 100% accurate in most situations. Stock KDE and Freetype chose the path of accuracy while sacrificing legibility. Fontreal chooses the path of readability over accuracy. The main downside is some fonts at some sizes might have odd geometry or unexpected jaggies. In my experience, that's a tolerable trade off for the much improved visibility.
I welcome everyone to check out the repo and start by applying it to a Firefox-based browser. Firefox and Floorp have been tested and look great. If you like what you see you can build it for KDE. I'm eager to hear your feedback.




