cppfw / svgren

:camera: SVG rendering library in C++
MIT License
206 stars 41 forks source link

Artifact when drawing SVG with `circle` #99

Closed lapfelix closed 2 years ago

lapfelix commented 2 years ago

I noticed an issue when using svgren to render one of our SVGs. This didn't happen with the older version of svgren we were using (that used cairo to render).

The attached SVG should render a circle, but it seems to render a square on the right of the circle:

Screen Shot 2021-11-03 at 12 52 43 PM

11111111.svg.zip

What the SVG looks like:

<svg width="50" height="70" 
  xmlns="http://www.w3.org/2000/svg">
  <g transform="translate(10.755 9.526)" fill="none" fill-rule="evenodd">
    <circle stroke="#010101" stroke-width="2.5" cx="23.889" cy="20.036" r="4.624"/>
  </g>
</svg>
igagis commented 2 years ago

@lapfelix thanks for report! I have fixed it in svgren version 0.5.25.

igagis commented 2 years ago

@lapfelix the issue can be closed, I suppose?

lapfelix commented 2 years ago

Yes the issue is now fixed! Thank you so much