separate font module and font now allocates in arena

This commit is contained in:
Alessandro Mauri 2025-10-22 14:35:35 +02:00
parent be51e37231
commit 7ff787f71f
2 changed files with 9 additions and 6 deletions

View file

@ -74,7 +74,7 @@ fn int main(String[] args)
// FONT LOADING //
// ========================================================================================== //
// import font in the ui context
ui.load_font("font1", "resources/hack-nerd.ttf", 16)!!;
ui.load_font(&arena, "font1", "resources/hack-nerd.ttf", 16)!!;
// set the renderer's font atlas
ren.font_atlas_id = ui.get_font_id("font1");