Login
You're viewing the functional.cafe public feed.

Replies

  • Mar 28, 2026, 12:53 PM

    @behdad Thanks for that amazing demo. Text looks very nice on my phone. But on my computer screen which has 1x pixel density small text looks a little not so good. Are there any tricks to improve rendering on lower density screens?

    screenshot of the demo website
    💬 1🔄 0⭐ 0
  • Mar 28, 2026, 5:09 PM

    @wipfli Hey. Thanks. This technique, like most GPU-accelerated text rasterizers, render "linearly-scalable" text, which means you don't do any hinting of the glyph shapes for the size they are displayed in, which means blurry and imperfect text at small sizes. For UI small-size text, still you need something like FreeType which does hinting, but then you can't freely scale and rotate the text on the fly. The linear algorithms are useful for games, virtual reality, etc, where fast, arbitrary transformations, are required.

    💬 1🔄 0⭐ 0
  • Mar 28, 2026, 7:02 PM

    @wipfli Also, check the demo again, I changed the font. A lot easier to appreciate the rendering on serif fonts than sans-serif.

    💬 1🔄 0⭐ 0
  • Mar 30, 2026, 3:04 AM

    @wipfli I implemented some poor man's stem-darkening as well, improves appearance at small sizes. Check it out. You can toggle it with "s".

    💬 1🔄 0⭐ 0