You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ga...@apache.org on 2014/11/10 10:17:05 UTC

svn commit: r1637810 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFPainter.java

Author: gadams
Date: Mon Nov 10 09:17:04 2014
New Revision: 1637810

URL: http://svn.apache.org/r1637810
Log:
FOP-2422: fix erroneous use of mapped char with fixed with space chars

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFPainter.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFPainter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFPainter.java?rev=1637810&r1=1637809&r2=1637810&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFPainter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFPainter.java Mon Nov 10 09:17:04 2014
@@ -408,7 +408,7 @@ public class PDFPainter extends Abstract
                 if (CharUtilities.isFixedWidthSpace(orgChar)) {
                     //Fixed width space are rendered as spaces so copy/paste works in a reader
                     ch = font.mapChar(CharUtilities.SPACE);
-                    int spaceDiff = font.getCharWidth(ch) - font.getCharWidth(orgChar);
+                    int spaceDiff = font.getCharWidth(CharUtilities.SPACE) - font.getCharWidth(orgChar);
                     glyphAdjust = -spaceDiff;
                 } else {
                     ch = font.mapChar(orgChar);



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org