void (Graphics g, CharSequence data, int x, int y, int fontType, Color color) { FontInfo fnt = fontForChar(data.charAt(0), fontType); CachedFontContent cache = null; for (int i = 0; i < myFontCache.size(); i++) { CachedFontContent cache1 = myFontCache.get(i); if (cache1.myFontType == fnt) { cache = cache1; break; } } if (cache == null) { cache = new CachedFontContent(fnt); myFontCache.add(cache); } cache.addContent(g, data, x, y, color); }