void (Graphics g, CharSequence data, int x, int y, int fontType, Color color) { if (!SystemInfo.isMac) { if (fontType == myCurrentFontType) { drawChars(g, data, x, y); } else if (fontType == Font.PLAIN) { myPlainCache.addContent(g, data, x, y, color); } else if (fontType == Font.BOLD) { myBoldCache.addContent(g, data, x, y, color); } else if (fontType == Font.ITALIC) { myItalicCache.addContent(g, data, x, y, color); } else { myBoldItalicCache.addContent(g, data, x, y, color); } } else { if (fontType != myCurrentFontType) { myCurrentFontType = fontType; g.setFont(getFont(fontType)); } drawChars(g, data, x, y); } }