Hacker News new | ask | show | jobs
by bscphil 3 days ago
What's the library used for font rendering? Looks slightly broken in the screenshots, like antialiasing isn't working properly. Maybe the alpha is being blended with the wrong gamma?
1 comments

Font rendering uses FreeType, HarfBuzz for text shaping, Cairo for drawing the rendered text. The font looks sharp it's just screenshots look overly compressed.
I tinkered with it a little, it looks like the biggest issue is that you don't have subpixel positioning for glyphs. Pretty much every modern UI toolkit supports this on Linux (Qt 5 and 6, GTK 4, the major browsers, etc), so it looks very unusual and out of place to me. I had an agent implement that (and disable hinting, since it breaks subpixel positioning... you could use light hinting though which is y-only). Looks a million times better IMO.

https://i.ibb.co/qMwxBqG3/Screenshot-20261130-050220.png