jassub
jassub copied to clipboard
Change fonts at runtime
We can use addFont
to make a new font available, but we can't remove fonts that won't be used anymore to free resources.
Right now, I am doing this to change fonts but old one are still taking some RAM:
if (fonts) {
for (const font of fonts) {
subOcto.addFont(font);
}
}