static new Map loadFont_cached_cache; static synchronized Font loadFont_cached(S snippetID) ctex { snippetID = formatSnippetID(snippetID); Font f = loadFont_cached_cache.get(snippetID); if (f == null) loadFont_cached_cache.put(snippetID, f = loadFont(snippetID, 12f)); ret f; } static synchronized Font loadFont_cached(S snippetID, float size) ctex { ret loadFont_cached(snippetID).deriveFont(size); }