dispose method
Releases all resources used by this BitmapFont.
This includes disposing of all associated Texture atlases and clearing
the glyphs
map. Call this when the font is no longer needed to free
GPU memory.
Implementation
dispose() {
for (final glyph in glyphs.values) {
glyph.image?.dispose();
}
glyphs.clear();
for (final texture in _textures) {
texture.dispose();
}
_textures.clear();
}