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

Robert Meyer updated FOP-2275:
------------------------------

    Attachment: patch.diff

I have come up with a patch for this issue. It involves converting the 
Quadratic to a Cubic curve. To do this, I needed to use the last drawn position 
in the calculation, hence creating the lastX and lastY variables which are set 
on the other drawing commands. It seems to work well and now matches the SVG 
drawing. Let me know what you think.
                
> Quadratic Bézier curves not properly rendered
> ---------------------------------------------
>
>                 Key: FOP-2275
>                 URL: https://issues.apache.org/jira/browse/FOP-2275
>             Project: Fop
>          Issue Type: Bug
>          Components: pdf
>            Reporter: Vincent Hennebert
>         Attachments: patch.diff, quadratic-bezier.fo, quadratic-bezier.pdf, 
> quadratic-bezier.svg
>
>
> Quadratic Bézier curves (q command in SVG) are rendered in PDF using cubic 
> Bézier operators (the y PDF operator). That gives a wrong result.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to