protected void BuildFDArrayUsed ( int Font ) { int [ ] FDSelect = fonts [ Font ] . FDSelect ; // For each glyph used for ( int i = 0 ; i < glyphsInList . size ( ) ; i ++ ) { // Pop the glyphs index int glyph = ( ( Integer ) glyphsInList . get ( i ) ) . intValue ( ) ; // Pop the glyph's FD int FD = FDSelect [ glyph ] ; // Put the FD index into the FDArrayUsed HashMap FDArrayUsed . put ( Integer . valueOf ( FD ) , null ) ; } }
Function reads the FDSelect and builds the FDArrayUsed HashMap According to the glyphs used