question: public int addGlyph ( FontDefinition . Glyph glyph ) { int idx = glyphs . size ( ) ; if ( glyph . getCode ( ) > 0 ) { Integer codeI = new Integer ( glyph . getCode ( ) ) ; indices . put ( codeI , new Integer ( idx ) ) ; glyphs . put ( codeI , glyph ) ; } glyphList . add ( glyph ) ; return idx ; }
target:  Add a glyph and return the index