[ https://issues.apache.org/jira/browse/FOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vlad Ivanov updated FOP-2635: ----------------------------- Comment: was deleted (was: I have encountered this issue with this seemingly innocuous piece of code: {code:xml} <g id="shape35-115" transform="translate(510.61 -.375)"> <desc>PWM</desc> <path d="M0 57.44h56.7v56.7H0z" class="st1"/> <text x="13.68" y="77.74" class="st2">PWM<tspan x="16.34" dy="1.2em" class="st3">CH</tspan>2<tspan x="19.18" dy="2.4em" class="st4">PIN</tspan><tspan class="st4">19</tspan></text> </g> {code} ) > ArrayIndexOutOfBoundsException at fonts.GlyphMapping when using PDFTranscoder > ----------------------------------------------------------------------------- > > Key: FOP-2635 > URL: https://issues.apache.org/jira/browse/FOP-2635 > Project: FOP > Issue Type: Bug > Affects Versions: 1.1 > Reporter: Andreas Kahmann > > Hi batikistas! > we seem to have found a weird bug when transcoding to pdf. > I enclose two example svg files that differ only minimally (namely in where > the line break is). > One of them causes an index out of bounds exception: > java.lang.ArrayIndexOutOfBoundsException: 28 > at org.apache.fop.fonts.GlyphMapping.addToLetterAdjust(GlyphMapping.java:286) > at > org.apache.fop.fonts.GlyphMapping.processWordNoMapping(GlyphMapping.java:248) > at org.apache.fop.fonts.GlyphMapping.doGlyphMapping(GlyphMapping.java:93) > at > org.apache.fop.svg.font.FOPGVTGlyphVector.performDefaultLayout(FOPGVTGlyphVector.java:94) > at org.apache.batik.bridge.GlyphLayout.doExplicitGlyphLayout(Unknown Source) > at org.apache.batik.bridge.GlyphLayout.adjustTextSpacing(Unknown Source) > at org.apache.batik.bridge.GlyphLayout.getAdvance2D(Unknown Source) > at org.apache.batik.bridge.StrokingTextPainter.getTextChunk(Unknown Source) > at org.apache.batik.bridge.StrokingTextPainter.computeTextRuns(Unknown Source) > at > org.apache.fop.svg.NativeTextPainter.computeTextRuns(NativeTextPainter.java:223) > at org.apache.batik.bridge.StrokingTextPainter.getTextRuns(Unknown Source) > at org.apache.batik.bridge.StrokingTextPainter.getBounds2D(Unknown Source) > at org.apache.batik.bridge.TextNode.getPrimitiveBounds(Unknown Source) > at > org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(Unknown > Source) > at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown > Source) > at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown > Source) > at > org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown > Source) > at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown > Source) > at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown > Source) > at > org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown > Source) > at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown > Source) > at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown > Source) > at > org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown > Source) > at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown > Source) > at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown > Source) > at org.apache.batik.gvt.AbstractGraphicsNode.getBounds(Unknown Source) > at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source) > at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:185) > at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) > at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) > The files can be found at this link: > https://www.dropbox.com/s/3r9wrt7od0pwu2p/svg-Files.zip?dl=0 > Maybe it is related to FOP-2572, although our example does not contain > non-breaking spaces. > Greetings, > Andy -- This message was sent by Atlassian JIRA (v6.4.14#64029)