Page 1 of 1

malfunction in svg output

Posted: Tue Jan 13, 2009 11:06 pm
by PK
Hello!

I just discovered cfdg few days ago. It's great - I downloaded v. 2.2 Beta3 for Linux.

Just I stumbled upon a malfunction in svg output: Triangles become "penrose darts".

cfdg:

Code: Select all

startshape Start
rule Start {TRIANGLE {}}
svg output with 2 comments:

Code: Select all

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!--               why not 500px?               -->
<svg width="500mm" height="500mm"
     xmlns="http://www.w3.org/2000/svg" version="1.1">
  <g transform="matrix(3.779528 0 0 -3.779528 0 1889.76)" fill="none" stroke="none">
<!--                                   this is superfluous: 0,0 -->
    <polygon points="0,0.57735 -0.5,-0.288675 0.5,-0.288675 0,0"
             fill="#000000" fill-rule="nonzero"
             transform="matrix(       484          0          0        484        250  180.14062)"/>
  </g>
</svg>

Posted: Wed Jan 14, 2009 2:26 pm
by MtnViewJohn
Thanks. I will fix triangles and change the units from millimeters to pixels.