public void insertNames ( Object allNames [ ] , String path ) { String names [ ] [ ] = ( String [ ] [ ] ) allNames [ 2 ] ; String main = null ; for ( int k = 0 ; k < names . length ; ++ k ) { String name [ ] = names [ k ] ; if ( name [ 2 ] . equals ( "1033" ) ) { main = name [ 3 ] ; break ; } } if ( main == null ) main = names [ 0 ] [ 3 ] ; BaseFontParameters p = new BaseFontParameters ( path ) ; mapper . put ( main , p ) ; for ( int k = 0 ; k < names . length ; ++ k ) { aliases . put ( names [ k ] [ 3 ] , main ) ; } aliases . put ( allNames [ 0 ] , main ) ; }
Inserts the names in this map .