aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2014-11-10 09:17:04 +0000
committerGlenn Adams <gadams@apache.org>2014-11-10 09:17:04 +0000
commitfd6d7a7aef4f4154c1b587e5b87158eafe1d3c0f (patch)
tree4195130e72de7033bba82cf12ab32da3ef2c5e64 /src
parent471fdf76e5d8c2967f648436c3390b1cb37607a1 (diff)
downloadxmlgraphics-fop-fd6d7a7aef4f4154c1b587e5b87158eafe1d3c0f.tar.gz
xmlgraphics-fop-fd6d7a7aef4f4154c1b587e5b87158eafe1d3c0f.zip
FOP-2422: fix erroneous use of mapped char with fixed width space chars
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1637810 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/render/pdf/PDFPainter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFPainter.java b/src/java/org/apache/fop/render/pdf/PDFPainter.java
index d1f247eea..cd992841e 100644
--- a/src/java/org/apache/fop/render/pdf/PDFPainter.java
+++ b/src/java/org/apache/fop/render/pdf/PDFPainter.java
@@ -408,7 +408,7 @@ public class PDFPainter extends AbstractIFPainter<PDFDocumentHandler> {
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);