private static final double[] IDENT_TX = {1, 0, 0, 1};
// cached state for various draw[String,Char,Byte] optimizations
public FontInfo checkFontInfo(FontInfo oldinfo, Font font) {
if (oldinfo == null || oldinfo.font != font) {
FontInfo newinfo = new FontInfo();
newinfo.font = font;
float ptSize = font.getSize2D();
int txFontType;
boolean glyphMightRotate;
if (font.isTransformed()) {