Package com.sun.opengl.util.j2d

Examples of com.sun.opengl.util.j2d.TextRenderer.dispose()


  }
  private void freeFontCache(Font font) {
    if(LOGGER.isLoggable(Level.FINER)) LOGGER.finer("Free cached font: " + font);
    TextRenderer renderer = textRenderers.get(font);
    if(renderer != null) {
      renderer.dispose();
      textRenderers.remove(font);
      cachedFonts.remove(font);
    }
  }
  private void freeFontCache() {
View Full Code Here


  }
  private void freeFontCache() {
    if(LOGGER.isLoggable(Level.FINER)) LOGGER.finer("Free cached fonts");
    for(Font font: cachedFonts) {
      TextRenderer renderer = textRenderers.get(font);
      renderer.dispose();
    }
    textRenderers.clear();
    cachedFonts.clear();
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.