From: Bertrand Delacretaz Date: Thu, 28 Sep 2006 14:39:31 +0000 (+0000) Subject: re-enabled generated ToUnicode table X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fremotes%2Fforay-font;p=xmlgraphics-fop.git 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 --- 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);