Code Through Coffee

A minimal variable font viewer using HarfBuzz

In support of a feature request submitted to Love2D, I created an MVP example of how to load variable fonts, detect their (common) axis limits and style sets, and render them with FreeType and SDL3. As you may have noticed, all of those libraries are what Love (12+ anyway) is based on.

Try it out, it even includes a few example fonts, featuring our very own Mona Sans:

turbo/harfbuzz-variable

demo

Cheers ☕

#graphics #lang-c