Sample SVG that is bad rendered
mrmx opened this issue ยท 2 comments
A three paths svg document with no curves
bitcoin-logo.svg.zip
Thx, I can confirm the issue. The second shape within the path, starting with m 15.838,26.885 -3.443,0.064 -2.516,0.022
is not parsed correctly. I was assuming that coordinates without a command are always a repetition of the previous command. However, it seems this is not true for m
/M
ove (which makes sense). The following coordinates are actually l
ines. This is why the shape is not closed and the third shape is offset.
I've actually not really found a documentation on how these repeated commands should be parsed. I guess I'll have to look into that.
The issue is fixed now, it can be properly imported as outline/track.
If you import it as SVG node, it won't have the inner cutouts. This is due to the design of the SVG. The cutouts orientation needs to be reversed. In case you're looking for this, see the svg attached.
bitcoin-logo-reversed.zip