public static int findName(String name,String[] table){
  for (int i=0; i < table.length; i++) {
    if (name.equals(table[i])) {
      return i;
    }
  }
  return -1;
}

public static int findName ( String name , String [ ] table ) { for ( int i = 0 ; i < table . length ; i ++ ) { if ( name . equals ( table [ i ] ) ) { return i ; } } return - 1 ; }
get the encoding value a glyph given its name and a name table .
