xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "simon steiner (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FOP-2635) ArrayIndexOutOfBoundsException at fonts.GlyphMapping when using PDFTranscoder
Date Thu, 10 May 2018 13:09:00 GMT

     [ https://issues.apache.org/jira/browse/FOP-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

simon steiner resolved FOP-2635.
--------------------------------
    Resolution: Duplicate

Dup of FOP-2572

> 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: Major
>
> 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
(v7.6.3#76005)

Mime
View raw message