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: [email protected]
For additional commands, e-mail: [email protected]