05-10-2023, 05:13 AM
Yep. Anything you load, you need to free, particularly when dealing with it being inside a looping structure.
I'd suggest just loading the font once at program initialization and then keeping it in memory as a shared variable. Then you can just _FONT shared_variable_name as needed, without having to reload that font over and over in memory.
I'd suggest just loading the font once at program initialization and then keeping it in memory as a shared variable. Then you can just _FONT shared_variable_name as needed, without having to reload that font over and over in memory.