From: Vincent Hennebert Date: Mon, 28 May 2012 16:16:23 +0000 (+0000) Subject: Merged changes from trunk up to revision 1343133 X-Git-Tag: fop-1_1rc1^2~1^2~7^2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b0ea791fe191cd6f7593aa3ba8ca83ceacc2c1c0;p=xmlgraphics-fop.git Merged changes from trunk up to revision 1343133 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@1343310 13f79535-47bb-0310-9956-ffa450edef68 --- b0ea791fe191cd6f7593aa3ba8ca83ceacc2c1c0 diff --cc lib/xmlgraphics-commons-1.5svn.jar index 5d555e348,d8c5e0989..88f8d2075 Binary files differ diff --cc src/java/org/apache/fop/fonts/truetype/TTFFile.java index 5860e5cd5,65ab560cf..f80226e26 --- a/src/java/org/apache/fop/fonts/truetype/TTFFile.java +++ b/src/java/org/apache/fop/fonts/truetype/TTFFile.java @@@ -533,22 -420,12 +533,10 @@@ public class TTFFile unicodeMappings.add(new UnicodeMapping(glyphIdx, j)); mtxTab[glyphIdx].getUnicodeIndex().add(new Integer(j)); - if (encodingID == 0 && j >= 0xF020 && j <= 0xF0FF) { - //Experimental: Mapping 0xF020-0xF0FF to 0x0020-0x00FF - //Tested with Wingdings and Symbol TTF fonts which map their - //glyphs in the region 0xF020-0xF0FF. - int mapped = j - 0xF000; - if (!eightBitGlyphs.get(mapped)) { - //Only map if Unicode code point hasn't been mapped before - unicodeMappings.add(new UnicodeMapping(glyphIdx, mapped)); - mtxTab[glyphIdx].getUnicodeIndex().add(new Integer(mapped)); - } - } - // Also add winAnsiWidth - List v = (List)ansiIndex.get(new Integer(j)); + List v = ansiIndex.get(new Integer(j)); if (v != null) { - Iterator e = v.listIterator(); - while (e.hasNext()) { - Integer aIdx = (Integer)e.next(); + for (Integer aIdx : v) { ansiWidth[aIdx.intValue()] = mtxTab[glyphIdx].getWx(); diff --cc src/java/org/apache/fop/render/ps/PSDocumentHandler.java index 01c93cb2d,95647d820..de82a3098 --- a/src/java/org/apache/fop/render/ps/PSDocumentHandler.java +++ b/src/java/org/apache/fop/render/ps/PSDocumentHandler.java @@@ -103,9 -104,8 +105,10 @@@ public class PSDocumentHandler extends private static final int COMMENT_DOCUMENT_HEADER = 0; private static final int COMMENT_DOCUMENT_TRAILER = 1; private static final int COMMENT_PAGE_TRAILER = 2; + private static final int PAGE_TRAILER_CODE_BEFORE = 3; + private PSEventProducer eventProducer; + /** * Default constructor. */