You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Heiko (JIRA)" <ji...@apache.org> on 2016/07/25 17:24:20 UTC

[jira] [Commented] (FOP-2635) ArrayIndexOutOfBoundsException at fonts.GlyphMapping when using PDFTranscoder

    [ https://issues.apache.org/jira/browse/FOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392329#comment-15392329 ] 

Heiko commented on FOP-2635:
----------------------------

the file validates at w3c

> 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
>            Priority: Critical
>
> 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.3.4#6332)