swhitty / SwiftDraw

Swift library and command line tool to convert SVGs into SFSymbol, PNG, PDF and Swift source code.
zlib License
326 stars 41 forks source link

Strange line breakage #8

Closed 2n closed 1 year ago

2n commented 1 year ago

This library helps me every day. Thank you so much.

I have tried to convert Feather icons using version 0.9.5. Almost everything was converted correctly, but I could see a strange line breakage in "key.svg". swiftdraw_key

I'm not sure if the problem is with the file or the library, but at least this SVG file shows up correctly in the macOS Finder and other graphics tools.

The link to key.svg is here. https://feathericons.com/?query=key

swhitty commented 1 year ago

Thank you for the bug report @2n.

This is now fixed in the 0.9.6 release.

There was a bug in how the path position was calculated when a path includes broken segments (multiple moves). Fix here

2n commented 1 year ago

Thanks for the quick bug fix! It works perfectly now.