fschutt/azul

svg not rendered correctly

picobyte opened this issue · 1 comments

In the SVG drawing example [1] if tiger.svg is replaced with another, e.g. Test.svg [2], then rendering is incorrect.

[1] https://github.com/maps4print/azul/tree/master/examples/svg
[2] https://upload.wikimedia.org/wikipedia/commons/b/bd/Test.svg

Can repro, running on

  • Windows 10 64 bit.
  • Cargo 1.4.0

I used this SVG for comparison, captured in IntelliJ's preview
image

And here's how it looks in Azul by default.
image

Converting all the shapes to use paths instead solves the issue.
image