elrumordelaluz / outline-stroke

Convert stroked SVG into the outlined version
https://outline-stroke.vercel.app/
126 stars 7 forks source link

Stroke Conversion #5

Open razvanFrandes opened 4 years ago

razvanFrandes commented 4 years ago

I have over 400 svg icons, and some of them have strokes.

I use node-icofont to convert those svg's in a font, but it wont convert all of them cause some have strokes. So i use this awesome plugin to convert the strokes, but is still no good, it merges all strokes,paths in one path, but it ads fill-rule: evenodd which is not good.

Is there an option so that the strokes can subtract the path, and create a new path ?

elrumordelaluz commented 4 years ago

Hi @razvanFrandes, thanks for open the Issue.

Mind sharing the result svg, what you expected and a snippet of your usage?

macCesar commented 4 years ago

Hi @razvanFrandes, thanks for open the Issue.

Mind sharing the result svg, what you expected and a snippet of your usage?

Basically I have the same problem, but posted the issue here:

https://github.com/elrumordelaluz/outline-stroke-cli/issues/3

schmidt-oliver commented 1 year ago

I have encountered the same problem. The attribute fill-rule="evenodd" isn't respected (in my case) by the library svgicons2svgfont. Is there an option for converting the SVGs to paths with fill-rule="nonzero"? It sounds that it is possible to convert them, but I am looking for a node library for that. A good summary of the problem can be found in this blog post under the heading 'Paths are filled when should not'.

schmidt-oliver commented 1 year ago

Found an alternative in SVGFixer.