Add some more preparation for multi-font support and proper unloading

find_font_by_name() just finds the index of a given font name. This
index is supposed to be stored and reused, because the font (for a
language/level) won't be changed very often. So this function would
only run when getting the language metadata, when loading a level, etc.
This commit is contained in:
Dav999-v
2023-01-11 04:53:44 +01:00
committed by Misa Elizabeth Kai
parent 83d645c8e3
commit 29a3789dec
2 changed files with 65 additions and 12 deletions

View File

@@ -52,6 +52,8 @@ struct GlyphInfo
struct Font
{
char name[64];
uint8_t glyph_w;
uint8_t glyph_h;