Author: ssteiner
Date: Fri Feb  6 15:58:52 2015
New Revision: 1657875

URL: http://svn.apache.org/r1657875
Log:
FOP-2432: OTF font NPE

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSPainter.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSPainter.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSPainter.java?rev=1657875&r1=1657874&r2=1657875&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSPainter.java 
(original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/PSPainter.java Fri 
Feb  6 15:58:52 2015
@@ -422,6 +422,7 @@ public class PSPainter extends AbstractI
                         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;



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

Reply via email to