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;
}

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 ; }
add a glyph and return the index
