aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2015-02-06 15:58:52 +0000
committerSimon Steiner <ssteiner@apache.org>2015-02-06 15:58:52 +0000
commitad9c2225e0a2edcb300a8bc3fcb384c1608acad4 (patch)
tree67892dc83ffb5a5b2fe5c50f29bea3264d718a10 /src/java
parenta30a33e730322c69fc72198885d01b0e42b1f9e9 (diff)
downloadxmlgraphics-fop-ad9c2225e0a2edcb300a8bc3fcb384c1608acad4.tar.gz
xmlgraphics-fop-ad9c2225e0a2edcb300a8bc3fcb384c1608acad4.zip
FOP-2432: OTF font NPE
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1657875 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/render/ps/PSPainter.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSPainter.java b/src/java/org/apache/fop/render/ps/PSPainter.java
index f3fa3cc79..18e0d6fec 100644
--- a/src/java/org/apache/fop/render/ps/PSPainter.java
+++ b/src/java/org/apache/fop/render/ps/PSPainter.java
@@ -422,6 +422,7 @@ public class PSPainter extends AbstractIFPainter<PSDocumentHandler> {
char orgChar = text.charAt(i);
MultiByteFont mbFont = (MultiByteFont)tf;
+ mbFont.mapChar(orgChar);
int origGlyphIdx = mbFont.findGlyphIndex(orgChar);
int newGlyphIdx = mbFont.getUsedGlyphs().get(origGlyphIdx);
int encoding = newGlyphIdx / 256;