code: private PdfDictionary getFontBaseType(PdfIndirectReference descendant, String subsetPrefix, PdfIndirectReference toUnicode) {
          PdfDictionary dic = new PdfDictionary(PdfName.FONT);
  
          dic.put(PdfName.SUBTYPE, PdfName.TYPE0);
          // The PDF Reference manual advises to add -encoding to CID font names
  		if (cff)
  		  dic.put(PdfName.BASEFONT, new PdfName(subsetPrefix+fontName+"-"+encoding));
  		  //dic.put(PdfName.BASEFONT, new PdfName(subsetPrefix+fontName));
  		else
  		  dic.put(PdfName.BASEFONT, new PdfName(subsetPrefix + fontName));
  		  //dic.put(PdfName.BASEFONT, new PdfName(fontName));
          dic.put(PdfName.ENCODING, new PdfName(encoding));
          dic.put(PdfName.DESCENDANTFONTS, new PdfArray(descendant));
          if (toUnicode != null)
              dic.put(PdfName.TOUNICODE, toUnicode);  
          return dic;
      }
docs: Generates the font dictionary.
  @param descendant the descendant dictionary
  @param subsetPrefix the subset prefix
  @param toUnicode the ToUnicode stream
  @return the stream