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!");}

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!" ) ; }
public int GetFontIndex(FontRecord font){for (int i = 0; i <= numfonts; i++){FontRecord thisFont =(FontRecord)records[(records.Fontpos - (numfonts - 1)) + i];if (thisFont == font){if (i > 3){return (i + 1);}return i;}}throw new ArgumentException("Could not find that font!");}
