[reportlab-users] problem with renderSVG

Dirk Datzert reportlab-users@reportlab.com
Tue, 07 Oct 2003 21:20:06 +0200


Hi Dinu,

from your demo5a.svg:

 <polyline points="77.500000 211.000000, 112.500000 195.000000, 147.5
00000 235.000000, 182.500000 203.000000, 217.500000 215.000000,
252.500000 187.0
00000, 287.500000 175.000000, 322.500000 187.000000, 357.500000
207.000000, 392.
500000 195.000000, 427.500000 207.000000, 462.500000 227.000000"
style="stroke-w
idth: 0.125; stroke-linecap: round; stroke: rgb(48%,40%,93%); fill:
none;"/>

from your demo5a.py:

self.add(PolyLine([77.5,211,112.5,195,147.5,235,182.5,203,217.5,
215,252.5,187,287.5,175,322.5,187,357.5,207,392.5,195,427.5,207,462.5,227],strok
eLineCap=0,strokeDashArray=None,strokeColor=Color(.482353,.407843,.933333),strok
eMiterLimit=0,strokeWidth=1,strokeLineJoin=1))

stroke-width differs 0.125 in svg and 1 py 

With your renderSVG (which is the origin I had made the patch from) I
got the following svg snippet:

<polyline points="77.500000 211.000000, 112.500000 195.000000,
147.500000 235.000000, 182.500000 203.000000, 217.500000 215.000000,
252.500000 187.000000, 287.500000 175.000000, 322.500000 187.000000,
357.500000 207.000000, 392.500000 195.000000, 427.500000 207.000000,
462.500000 227.000000" style="fill: rgb(0%,0%,0%); stroke-width: 0.125;
stroke-linecap: round; stroke: rgb(48%,40%,93%);"/>
                    
stroke-width is same as yours, but fill differs.


Python-XML Versions:

_xmlplus 0.8.2 !

Regards,
Dirk