Font2D textures aren't loaded when an applet is reloaded



Hello,

I use Font2D in my applet. When I refresh the web page, the applet is reloaded: on stop, the textures are cleared using TextureManager.clearCache(). Then, the applet restart, and fonts are loaded: for each font, TextureState.getFontTextureState(String fontFile) is called, but the cachedFontTextureStates member is static, and on applet reload, the statics are not re-initialized. So, all the fonts are found in this hashtable and nothing is reloaded  ... :?.

Could we add a new method in Font2D that clear this hashTable? For example,

public static clearCachedFontTextureStates() {
    cachedFontTextureStates.clear();
}

Thanks  :)

Sure