]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
PR:
authorTore Engvig <tore@apache.org>
Mon, 16 Apr 2001 21:52:09 +0000 (21:52 +0000)
committerTore Engvig <tore@apache.org>
Mon, 16 Apr 2001 21:52:09 +0000 (21:52 +0000)
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

src/org/apache/fop/pdf/PDFDocument.java

index b0314cb3ba652b5edf578cca5be334d06347728c..d96654a3eb254b9d22d545c8305f4727eae8eacd 100644 (file)
@@ -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(