diff options
author | Glenn Adams <gadams@apache.org> | 2014-11-10 09:17:04 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2014-11-10 09:17:04 +0000 |
commit | fd6d7a7aef4f4154c1b587e5b87158eafe1d3c0f (patch) | |
tree | 4195130e72de7033bba82cf12ab32da3ef2c5e64 /src | |
parent | 471fdf76e5d8c2967f648436c3390b1cb37607a1 (diff) | |
download | xmlgraphics-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.java | 2 |
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); |