Dynamically resizable font addon?

Hi, is there an addon that allows one to dynamically resize font without having to reload the font everytime?

If I want to use a font in various sizes, I have to load the same font multiple times and I think it’s somewhat waste of memory.

Of course, I can scale up/down the font using ofScale but the font will get distorted.
Is there any better solution to load font once and use it multiple times in different sizes?

whenever you load a font it parses the file and generates the font in a texture at the requested size, even the process of generating the pixels is not reusable for every size and once it’s done loading the only thing left in the font are the metadata and the texture so i doubt there’s a much more efficient way to do it in terms of memory usage

1 Like

I see. Thank you for your answer @arturo :slight_smile: