Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: A 300k-line Zig desktop environment with its own compositor,GUI toolkit (opens external site)

65 points by oxydizer 1 day ago | github.com | 29 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. 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?
    Replies (1)
    1. 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.
      Replies (1)
      1. 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