HashMap readFormat0 ( ) throws IOException { HashMap h = new HashMap ( ) ; rf . skipBytes ( 4 ) ; for ( int k = 0 ; k < 256 ; ++ k ) { int r [ ] = new int [ 2 ] ; r [ 0 ] = rf . readUnsignedByte ( ) ; r [ 1 ] = getGlyphWidth ( r [ 0 ] ) ; h . put ( Integer . valueOf ( k ) , r ) ; } return h ; }
The information in the maps of the table cmap is coded in several formats . Format 0 is the Apple standard character to glyph index mapping table .