text: public int getFontIndex(FontRecord font) {for(int i=0; i<=numfonts; i++) {FontRecord thisFont =( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + i);if(thisFont == font) {return (i > 3) ? i+1 : i;}}throw new IllegalArgumentException("Could not find that font!");}