From f6bb87dfa03469e1ab82dc2766e35c8481defeb9 Mon Sep 17 00:00:00 2001 From: Bertrand Delacretaz Date: Thu, 28 Sep 2006 14:39:31 +0000 Subject: [PATCH] re-enabled generated ToUnicode table git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/foray-font@450872 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/pdf/PDFToUnicodeCMap.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/fop/pdf/PDFToUnicodeCMap.java b/src/java/org/apache/fop/pdf/PDFToUnicodeCMap.java index 9d7567a5b..5a038eb86 100644 --- a/src/java/org/apache/fop/pdf/PDFToUnicodeCMap.java +++ b/src/java/org/apache/fop/pdf/PDFToUnicodeCMap.java @@ -53,7 +53,8 @@ public class PDFToUnicodeCMap extends PDFCMap { this.fsFont = fsFont; } - public void fillInPDF(final StringBuffer p) { + /** TODO remove this method, used for simulation only */ + public void DISABLED_fillInPDF(final StringBuffer p) { // Just a fixed simulated cmap to test the basic mechanism, // won't work correctly for many chars, of course final String simulatedIdentityCmap = @@ -70,8 +71,10 @@ public class PDFToUnicodeCMap extends PDFCMap { +"\n1 begincodespacerange" +"\n<0000> " +"\nendcodespacerange" - +"\n1 beginbfrange" - +"\n<0000> <005E> <001F>" + +"\n2 beginbfrange" + +"\n<000a> <0040> <0029>" + +"\n<0043> <005f> <0062>" + //+"\n<0000> <005E> <001F>" +"\nendbfrange" +"\nendcmap" +"\nCMapName currentdict /CMapdefineresource pop" @@ -81,7 +84,7 @@ public class PDFToUnicodeCMap extends PDFCMap { add(simulatedIdentityCmap); } - public void DISABLED_fillInPDF(final StringBuffer p) { + public void fillInPDF(final StringBuffer p) { writeCIDInit(p); writeCIDSystemInfo(p); writeVersionTypeName(p); -- 2.39.5