3 ms·
This one is 1100 lines of code, nice for embedded project. A nice font renderer is orders of magnitude more code, e.g., harfbuzz 25,000 lines of code with or F
by SideQuark 4y ago
This one is 1100 lines of code, nice for embedded project.
A nice font renderer is orders of magnitude more code, e.g., harfbuzz 25,000 lines of code with or FreeType with 245,000 lines of code. Many projects do not want that kind of bloat.
I'd guess some of these little ones allows using your own bmp font, so render a font you like, and use the rendered glyphs.
- krapp 4y ago>Many projects do not want that kind of bloat. It isn't bloat if it's desired functionality. Not every project is optimized to run in an embedded environment, nor does it need to be.
- SideQuark 4y agoAdding 250,000 lines of code to render fonts to an 1100 line functional gui library is bloat no matter how you slice it. If someone want that renderer, it's not that hard to wire it in. And if you in particular want it, fork them and merge them.
- krapp 4y agoMeh. A small C library is easier to extend than a sprawling C++ library, and it's perfectly valid to want a minimal gui that can actually import fonts. Even just building a font atlas on top of that would be useful in a lot of projects.