From: Tore Engvig Date: Mon, 16 Apr 2001 21:52:09 +0000 (+0000) Subject: PR: X-Git-Tag: PRE_CODEFORMATTING~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf4213d20915830a9e75bec69a78ce3b7f515622;p=xmlgraphics-fop.git PR: Changed encoding of CID fonts from customized CMap to predefined Identity-H encoding. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194215 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/pdf/PDFDocument.java b/src/org/apache/fop/pdf/PDFDocument.java index b0314cb3b..d96654a3e 100644 --- a/src/org/apache/fop/pdf/PDFDocument.java +++ b/src/org/apache/fop/pdf/PDFDocument.java @@ -770,17 +770,20 @@ public class PDFDocument { PDFFontNonBase14 font = null; if (subtype == PDFFont.TYPE0) { - PDFCMap cmap = new PDFCMap(++this.objectcount, - "fop-ucs-H", - new PDFCIDSystemInfo("Adobe", - "Identity", - 0)); - cmap.addContents(); - this.objects.addElement(cmap); - + /* + * Temporary commented out - customized CMaps + * isn't needed until /ToUnicode support is added + PDFCMap cmap = new PDFCMap(++this.objectcount, + "fop-ucs-H", + new PDFCIDSystemInfo("Adobe", + "Identity", + 0)); + cmap.addContents(); + this.objects.addElement(cmap); + */ font = (PDFFontNonBase14)PDFFont.createFont( ++this.objectcount, fontname, - subtype, basefont, cmap); + subtype, basefont, "Identity-H"); } else { font = (PDFFontNonBase14)PDFFont.createFont(