BrainStronk / TinyEngine

A tiny game engine written in C.
Creative Commons Zero v1.0 Universal
32 stars 1 forks source link

Offline MSDF Font Generator #12

Open strangezakary opened 4 years ago

strangezakary commented 4 years ago

I would like the engine to support high quality font rendering if the user / app wants it. Therefore we will need some sort of tool that generates MSDF Font Atlas's offline so that we can load them into the engine.

demetri commented 4 years ago

I can look into this. Simplest possible method is to use STB to grab geometry and Chlumsky to generate MSDF, but could probably do our own version of the latter since it's IMO kind of inscrutable code.

Any requirements/expectations here?

strangezakary commented 4 years ago

Yep, im totally okay with using that stuff as there's no reason to parse TTF and get our own geometry, since stb_ttf does a good job at that. Only requirement is to make sure its a standalone tool, everything else is up to you.