@Deprecated public static FontProgram createType1Font(String name,byte[] afm,byte[] pfb,boolean cached) throws java.io.IOException {
  FontProgram fontProgram;
  String fontKey=null;
  if (cached) {
    if (name != null) {
      fontKey=name;
    }
 else {
      fontKey=Integer.toString(ArrayUtil.hashCode(afm));
    }
    fontProgram=FontCache.getFont(fontKey);
    if (fontProgram != null) {
      return fontProgram;
    }
  }
  fontProgram=new Type1Font(name,null,afm,pfb);
  return cached ? FontCache.saveFont(fontProgram,fontKey) : fontProgram;
}

@ Deprecated public static FontProgram createType1Font ( String name , byte [ ] afm , byte [ ] pfb , boolean cached ) throws java . io . IOException { FontProgram fontProgram ; String fontKey = null ; if ( cached ) { if ( name != null ) { fontKey = name ; } else { fontKey = Integer . toString ( ArrayUtil . hashCode ( afm ) ) ; } fontProgram = FontCache . getFont ( fontKey ) ; if ( fontProgram != null ) { return fontProgram ; } } fontProgram = new Type1Font ( name , null , afm , pfb ) ; return cached ? FontCache . saveFont ( fontProgram , fontKey ) : fontProgram ; }
this method is deprecated and will be completely removed in 7 . 1
