I gave up on rendering text completely by hand, when I realized that to do it properly (esp. for CJK) I needed to make a virtual machine that executes bytecode ??
So I switched to freetype, and started working on a glyph atlas !
Added a serialization system, and therefore a little save state to my game :p
Thanks to Jai magic the API is just :
save_data := save(*stuff_to_save);
ok := load(save_data, *stuff_to_save);
As someone who still prefers to make games in a custom engine I wrote, the code is kind of an inseparable part of a game's character, decisions about engine structure and every little bit of code have ripples that can be felt in the end product, even if hard to pick out specifics
@SebAaltonen That's also how I did it for a personal project of mine, but now I think it's maybe not the best to do that, since resizing is not something you do a lot anyway, so I'd rather save the memory (but I guess, as always, it depends on what you want)