[jira] [Updated] (FOP-3058) AFP-Renderer does not honour fill-rule 'nonzero' of SVG path.

2022-03-07 Thread JYR (Jira)


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

JYR updated FOP-3058:
-
Affects Version/s: 0.95

> AFP-Renderer does not honour fill-rule 'nonzero' of SVG path.
> -
>
> Key: FOP-3058
> URL: https://issues.apache.org/jira/browse/FOP-3058
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg, renderer/afp
>Affects Versions: 0.95, 2.7
>Reporter: JYR
>Priority: Major
> Attachments: GreenCrossAsAFP.png, GreenCrossAsPDF.png, 
> TestWithSVGPath-1.7z
>
>
> Hi there,
> We have just isolated an interesting bug in the AFP renderer.
> We are embedding some SVG graphics in a FO file and the AFP renderer does not 
> seem to take the "fill-rule" attribute into account.
> It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
> 'evenodd'.
> The PDF renderer does honour this fill-rule, but not the AFP renderer.
> We have isolated this issue in a test project. Just unpack 
> [^TestWithSVGPath-1.7z]. All the necessary files are provided.
> This is the correct output of the PDF renderer
> !GreenCrossAsPDF.png!
> This is the output of the AFP renderer.
> !GreenCrossAsAFP.png!
> FOP integration:
>  * We are calling FOP via java.exe.
>  * FOP is configured with an xconf file.
> Expected: 
> * The AFP-Renderer shall honour the 'fill-rule' attribute of the SVG path.
> * If the 'fill-rule' attribute is not specified, the AFP-Renderer shall 
> default to 'nonzero'.
> Extract of FO-File
> {code:xml}
> 
>   http://www.w3.org/2000/svg;>
>transform="translate(0 130.394)">
>   
>   
>   
>shape-rendering="crispEdges" d="
>   M63.543,-70.709
>   h 3.307
>   v 11.024
>   h -3.307
>   z
>   m-3.858,3.858
>   h11.024
>   v3.307
>   h-11.024
>   z
>   "/>
>   
>   
>   
>   
>   
> 
> {code}
> We spotted this bug with FOP version 0.95, but it still occurs with FOP 2.7.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (FOP-3058) AFP-Renderer does not honour fill-rule 'nonzero' of SVG path.

2022-03-07 Thread JYR (Jira)


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

JYR updated FOP-3058:
-
Description: 
Hi there,

We have just isolated an interesting bug in the AFP renderer.

We are embedding some SVG graphics in a FO file and the AFP renderer does not 
seem to take the "fill-rule" attribute into account.
It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
'evenodd'.

The PDF renderer does honour this fill-rule, but not the AFP renderer.

We have isolated this issue in a test project. Just unpack 
[^TestWithSVGPath-1.7z]. All the necessary files are provided.

This is the correct output of the PDF renderer
!GreenCrossAsPDF.png!

This is the output of the AFP renderer.
!GreenCrossAsAFP.png!

FOP integration:
 * We are calling FOP via java.exe.
 * FOP is configured with an xconf file.

Expected: 
* The AFP-Renderer shall honour the 'fill-rule' attribute of the SVG path.
* If the 'fill-rule' attribute is not specified, the AFP-Renderer shall default 
to 'nonzero'.

Extract of FO-File
{code:xml}

http://www.w3.org/2000/svg;>











{code}
We spotted this bug with FOP version 0.95, but it still occurs with FOP 2.7.

  was:
Hi there,

We have just isolated an interesting bug in the AFP renderer.

We are embedding some SVG graphics in a FO file and the AFP renderer does not 
seem to take the "fill-rule" attribute into account.
It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
'evenodd'.

The PDF renderer does honour this fill-rule, but not the AFP renderer.

We have isolated this issue in a test project. Just deflate 
[^TestWithSVGPath-1.7z]. All the necessary files are provided.

This is the correct output of the PDF renderer
!GreenCrossAsPDF.png!

This is the output of the AFP renderer.
!GreenCrossAsAFP.png!

FOP integration:
 * We are calling FOP via java.exe.
 * FOP is configured with an xconf file.

Expected: 
* The AFP-Renderer shall honour the 'fill-rule' attribute of the SVG path.
* If the 'fill-rule' attribute is not specified, the AFP-Renderer shall default 
to 'nonzero'.

Extract of FO-File
{code:xml}

http://www.w3.org/2000/svg;>











{code}
We spotted this bug with FOP version 0.95, but it still occurs with FOP 2.7.


> AFP-Renderer does not honour fill-rule 'nonzero' of SVG path.
> -
>
> Key: FOP-3058
> URL: https://issues.apache.org/jira/browse/FOP-3058
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg, renderer/afp
>Affects Versions: 2.7
>Reporter: JYR
>Priority: Major
> Attachments: GreenCrossAsAFP.png, GreenCrossAsPDF.png, 
> TestWithSVGPath-1.7z
>
>
> Hi there,
> We have just isolated an interesting bug in the AFP renderer.
> We are embedding some SVG graphics in a FO file and the AFP renderer does not 
> seem to take the "fill-rule" attribute into account.
> It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
> 'evenodd'.
> The PDF renderer does honour this fill-rule, but not the AFP renderer.
> We have isolated this issue in a test project. Just unpack 
> [^TestWithSVGPath-1.7z]. All the necessary files are provided.
> This is the correct output of the PDF renderer
> !GreenCrossAsPDF.png!
> This is the output of the AFP renderer.
> !GreenCrossAsAFP.png!
> FOP integration:
>  * We are calling FOP via java.exe.
>  * FOP is configured with an xconf file.
> Expected: 
> * The AFP-Renderer shall honour the 'fill-rule' attribute of the SVG path.
> * If the 'fill-rule' attribute is not specified, the AFP-Renderer shall 
> default to 'nonzero'.
> Extract of FO-File
> {code:xml}
> 
>   http://www.w3.org/2000/svg;>
>transform="translate(0 130.394)">
>   
>   
>   
>shape-rendering="crispEdges" d="
>   M63.543,-70.709
>   h 3.307
>   v 11.024
>   h -3.307
>   z
>   m-3.858,3.858
>   h11.024
>

[jira] [Updated] (FOP-3058) AFP-Renderer does not honour fill-rule 'nonzero' of SVG path.

2022-03-07 Thread JYR (Jira)


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

JYR updated FOP-3058:
-
Description: 
Hi there,

We have just isolated an interesting bug in the AFP renderer.

We are embedding some SVG graphics in a FO file and the AFP renderer does not 
seem to take the "fill-rule" attribute into account.
It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
'evenodd'.

The PDF renderer does honour this fill-rule, but not the AFP renderer.

We have isolated this issue in a test project. Just deflate 
[^TestWithSVGPath-1.7z]. All the necessary files are provided.

This is the correct output of the PDF renderer
!GreenCrossAsPDF.png!

This is the output of the AFP renderer.
!GreenCrossAsAFP.png!

FOP integration:
 * We are calling FOP via java.exe.
 * FOP is configured with an xconf file.

Expected: 
* The AFP-Renderer shall honour the 'fill-rule' attribute of the SVG path.
* If the 'fill-rule' attribute is not specified, the AFP-Renderer shall default 
to 'nonzero'.

Extract of FO-File
{code:xml}

http://www.w3.org/2000/svg;>











{code}
We spotted this bug with FOP version 0.95, but it still occurs with FOP 2.7.

  was:
Hi there,

We have just isolated an interesting bug in the AFP renderer.

We are embedding some SVG graphics in a FO file and the AFP renderer does not 
seem to take the "fill-rule" attribute into account.
It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
'evenodd'.

The PDF renderer does honour this fill-rule, but not the AFP renderer.

We have isolated this issue in a test project. Just deflate 
[^TestWithSVGPath-1.7z]. All the necessary files are provided.

This is the correct output of the PDF renderer
!GreenCrossAsPDF.png!

This is the output of the AFP renderer.
!GreenCrossAsAFP.png!

FOP integration:
 * We are calling FOP via java.exe.
 * FOP is configured with an xconf file.

Extract of FO-File
{code:xml}

http://www.w3.org/2000/svg;>











{code}
We spotted this bug with FOP version 0.95, but it still occurs with FOP 2.7.


> AFP-Renderer does not honour fill-rule 'nonzero' of SVG path.
> -
>
> Key: FOP-3058
> URL: https://issues.apache.org/jira/browse/FOP-3058
> Project: FOP
>  Issue Type: Bug
>  Components: image/svg, renderer/afp
>Affects Versions: 2.7
>Reporter: JYR
>Priority: Major
> Attachments: GreenCrossAsAFP.png, GreenCrossAsPDF.png, 
> TestWithSVGPath-1.7z
>
>
> Hi there,
> We have just isolated an interesting bug in the AFP renderer.
> We are embedding some SVG graphics in a FO file and the AFP renderer does not 
> seem to take the "fill-rule" attribute into account.
> It seems to ignore the fill-rule 'nonzero' of our path and defaults to 
> 'evenodd'.
> The PDF renderer does honour this fill-rule, but not the AFP renderer.
> We have isolated this issue in a test project. Just deflate 
> [^TestWithSVGPath-1.7z]. All the necessary files are provided.
> This is the correct output of the PDF renderer
> !GreenCrossAsPDF.png!
> This is the output of the AFP renderer.
> !GreenCrossAsAFP.png!
> FOP integration:
>  * We are calling FOP via java.exe.
>  * FOP is configured with an xconf file.
> Expected: 
> * The AFP-Renderer shall honour the 'fill-rule' attribute of the SVG path.
> * If the 'fill-rule' attribute is not specified, the AFP-Renderer shall 
> default to 'nonzero'.
> Extract of FO-File
> {code:xml}
> 
>   http://www.w3.org/2000/svg;>
>transform="translate(0 130.394)">
>   
>   
>   
>shape-rendering="crispEdges" d="
>   M63.543,-70.709
>   h 3.307
>   v 11.024
>   h -3.307
>   z
>   m-3.858,3.858
>   h11.024
>   v3.307
>   h-11.024
>   z
>