SVG path - import of letter outlines / FlatCAM 8.5

Issue #425 new
Frank Broda created an issue

FlatCAM is currently not able to import certain SVG paths. Examples are font outlines generated by Inkscape 0.92 when converting SVG text to paths (Path → “Object to path”). Digits (and letters probably too) with holes such as 4, 6, 8, 9, 0, … are not handled properly within “svgparse.py”. svgparse.py currently misses the path elements “Move” and “Close” and the ability to derive multiple Polygons from a single SVG path node.

Additionally, in my version of the python3 svg.path package (4.0.2) there is no property “closed” for Path objects.

The attached diff fixes both issues.

Edit: this patch is for FlatCAM in Master branch.