xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Reischenbacher (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FOP-2572) [PATCH] Non-breaking space within a Text node causes an Exception.
Date Thu, 10 May 2018 14:32:00 GMT

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

Matthias Reischenbacher commented on FOP-2572:
----------------------------------------------

Fixed in http://svn.apache.org/viewvc?view=revision&revision=1831346

> [PATCH] Non-breaking space within a Text node causes an Exception.
> ------------------------------------------------------------------
>
>                 Key: FOP-2572
>                 URL: https://issues.apache.org/jira/browse/FOP-2572
>             Project: FOP
>          Issue Type: Bug
>          Components: fo/inline
>    Affects Versions: 2.0
>         Environment: All
>            Reporter: Karl Snyder
>            Priority: Major
>         Attachments: fop-2572.patch
>
>
> A non-breaking space (Option+Space on the Mac) in content will cause the following exception.
> {code}java.lang.ArrayIndexOutOfBoundsException: 14
> 	at org.apache.fop.fonts.GlyphMapping.addToLetterAdjust(GlyphMapping.java:286) ~[fop-2.0.jar:na]
> 	at org.apache.fop.fonts.GlyphMapping.processWordNoMapping(GlyphMapping.java:248) ~[fop-2.0.jar:na]
> 	at org.apache.fop.fonts.GlyphMapping.doGlyphMapping(GlyphMapping.java:93) ~[fop-2.0.jar:na]
> 	at org.apache.fop.svg.font.FOPGVTGlyphVector.performDefaultLayout(FOPGVTGlyphVector.java:94)
~[fop-2.0.jar:na]
> 	at org.apache.batik.bridge.GlyphLayout.doExplicitGlyphLayout(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.bridge.GlyphLayout.adjustTextSpacing(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.bridge.GlyphLayout.getAdvance2D(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.bridge.StrokingTextPainter.getTextChunk(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.bridge.StrokingTextPainter.computeTextRuns(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.fop.svg.NativeTextPainter.computeTextRuns(NativeTextPainter.java:223)
~[fop-2.0.jar:na]
> 	at org.apache.batik.bridge.StrokingTextPainter.getTextRuns(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.bridge.StrokingTextPainter.getBounds2D(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.bridge.TextNode.getPrimitiveBounds(Unknown Source) ~[batik-bridge-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(Unknown Source)
~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown
Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown
Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(Unknown
Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.getBounds(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source) ~[batik-gvt-1.8.jar:1.8]
> 	at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:185) ~[fop-2.0.jar:na]
> 	at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source) ~[batik-transcoder-1.8.jar:1.8]
> 	at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source) ~[batik-transcoder-1.8.jar:1.8]
> ...{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message