New font tool for Playdate!
Friday, June 21st, 2024
Just a quick one...
Today I made a little tool to convert TTF files into FNT files that the Playdate SDK uses to render text. Unfortunately there are not a lot of tools available that do this, and most of the ones I could find were not designed to be used as part of a build system, so I threw one together using the stb libraries and some basic C that should be portable to pretty much every platform.
You can download it using:
git clone https://git.bts.cx/ttf2pdfnt.git
Details on how to compile and use it are in the C file itself!