[cairo] Fwd: libsvg bug and proposed patch
Clay Hopperdietzel
hoppy at gnurdle.com
Tue Mar 27 05:11:52 PDT 2012
-------- Original Message --------
Subject: libsvg bug and proposed patch
Date: Tue, 20 Mar 2012 19:11:08 +0000
From: Clay Hopperdietzel <hoppy at gnurdle.com>
To: raph at acm.org, cworth at isi.edu
All,
does libsvg have an active maintainer?
I sumbitted a patch a week ago to who seemed to be the owners of this,
but got no response.
The message follows.
If there is a better way of getting these taken care of, please advise.
Clay
----------
I hope this is the proper approach to filing a bug report, if not,
please direct me to the proper place.
I'm using libsvg-0.1.4 with libsvg-cairo-0.1.6
I created an SVG using inkscape.
The relevent part of this given below:
<path
style="fill:#ac8a00;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
d="m 15,36.233643 18.047549,-20 26.952451,10 7.202838,30
-2.202838,30 -37.675769,-10 z"
id="path4723"
inkscape:connector-curvature="0" />
this figure was not rendering properly with libsvg, but was in inkscape
plus chrome web browser.
After running with cairo trace, discovered that the net sum of what this
did was a number of move commands, followed by a close path.
I believe that the problem is failure to observe the following from
http://www.w3.org/TR/SVG/paths.html
<http://www.w3.org/TR/SVG/paths.html#PathDataClosePathCommand>
8.3.2 moveto
"... If a moveto is followed by multiple pairs of coordinates, the
subsequent pairs are treated as implicit lineto commands. Hence,
implicit lineto commands will be relative if the moveto is relative, and
absolute if the moveto is absolute. ..."
attached is a patch which applied to libsvg seems to correct this problem.
Thank you for your attention.
hoppy at gnurdle.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120327/77907794/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsvg-20120320.patch
Type: text/x-patch
Size: 1554 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20120327/77907794/attachment.bin>
More information about the cairo
mailing list