protected int defineFont1(Movie movie,SWFTagTypes tagwriter) throws IOException {
  int id=getNextId(movie);
  SWFVectors vecs=tagwriter.tagDefineFont(id,glyphList.size());
  for (Iterator it=glyphList.iterator(); it.hasNext(); ) {
    FontDefinition.Glyph g=(FontDefinition.Glyph)it.next();
    Shape s=g.getShape();
    s.writeGlyph(vecs);
  }
  if (fontDef.getName() != null) {
    int flags=0;
    if (fontDef.isUnicode()) {
      flags|=SWFConstants.FONT_UNICODE;
    }
    if (fontDef.isShiftJIS()) {
      flags|=SWFConstants.FONT_SHIFTJIS;
    }
    if (fontDef.isAnsi()) {
      flags|=SWFConstants.FONT_ANSI;
    }
    if (fontDef.isItalic()) {
      flags|=SWFConstants.FONT_ITALIC;
    }
    if (fontDef.isBold()) {
      flags|=SWFConstants.FONT_BOLD;
    }
    tagwriter.tagDefineFontInfo(id,fontDef.getName(),flags,getCodes());
  }
  return id;
}

protected int defineFont1 ( Movie movie , SWFTagTypes tagwriter ) throws IOException { int id = getNextId ( movie ) ; SWFVectors vecs = tagwriter . tagDefineFont ( id , glyphList . size ( ) ) ; for ( Iterator it = glyphList . iterator ( ) ; it . hasNext ( ) ; ) { FontDefinition . Glyph g = ( FontDefinition . Glyph ) it . next ( ) ; Shape s = g . getShape ( ) ; s . writeGlyph ( vecs ) ; } if ( fontDef . getName ( ) != null ) { int flags = 0 ; if ( fontDef . isUnicode ( ) ) { flags |= SWFConstants . FONT_UNICODE ; } if ( fontDef . isShiftJIS ( ) ) { flags |= SWFConstants . FONT_SHIFTJIS ; } if ( fontDef . isAnsi ( ) ) { flags |= SWFConstants . FONT_ANSI ; } if ( fontDef . isItalic ( ) ) { flags |= SWFConstants . FONT_ITALIC ; } if ( fontDef . isBold ( ) ) { flags |= SWFConstants . FONT_BOLD ; } tagwriter . tagDefineFontInfo ( id , fontDef . getName ( ) , flags , getCodes ( ) ) ; } return id ; }
description of the method
