mtl / svg2mod

Convert Inkscape SVG drawings to KiCad footprint modules
Creative Commons Zero v1.0 Universal
236 stars 56 forks source link

Incorrect stroke-width calculation #2

Open apelly opened 8 years ago

apelly commented 8 years ago

Howdy,

Awesome tool. This functionality should really be built into kicad.

Anyway, I'm having issues with the stroke-width calculation on inkscape output.

I'm sure you've read it, but there's a bunch of information here: http://wiki.inkscape.org/wiki/index.php/Units_In_Inkscape

In the first instance I can't work out how inkscape is calculating the internal units, and in the second I'm not handy enough with python to sort it out. I see you calculating a scaling factor in init, but the scale for the stroke width is hard coded.

It's easy enough to vi the svg or the footprint I guess. I'm just bringing this to your attention in case you care. I'll plug away for a while and see if I get anywhere. I'll let you know if I do.

kasbah commented 6 years ago

Hey @apelly, I know this is an old issue but could you provide any example SVG files where I could see the exact problem?