diff options
author | Tore Engvig <tore@apache.org> | 2001-04-16 21:52:09 +0000 |
---|---|---|
committer | Tore Engvig <tore@apache.org> | 2001-04-16 21:52:09 +0000 |
commit | bf4213d20915830a9e75bec69a78ce3b7f515622 (patch) | |
tree | 63c3d4bb16eda1adecc99f559d40bdfdf1bd5c40 /src | |
parent | df869e2406b6e209e9cbb71d3f32e887e8291a2b (diff) | |
download | xmlgraphics-fop-bf4213d20915830a9e75bec69a78ce3b7f515622.tar.gz xmlgraphics-fop-bf4213d20915830a9e75bec69a78ce3b7f515622.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/org/apache/fop/pdf/PDFDocument.java | 21 |
1 files changed, 12 insertions, 9 deletions
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( |