Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stroke Conversion #5

Open
razvanFrandes opened this issue Apr 27, 2020 · 4 comments
Open

Stroke Conversion #5

razvanFrandes opened this issue Apr 27, 2020 · 4 comments
Labels
need more info Waiting needed information to proceed

Comments

@razvanFrandes
Copy link

razvanFrandes commented Apr 27, 2020

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 ?

@razvanFrandes razvanFrandes changed the title Stroke Converstion Stroke Conversion Apr 27, 2020
@elrumordelaluz
Copy link
Owner

Hi @razvanFrandes, thanks for open the Issue.

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

@elrumordelaluz elrumordelaluz added the need more info Waiting needed information to proceed label May 11, 2020
@razvanFrandes razvanFrandes reopened this Jun 4, 2020
@macCesar
Copy link

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:

elrumordelaluz/outline-stroke-cli#3

@schmidt-oliver
Copy link

schmidt-oliver commented Jun 28, 2023

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
Copy link

Found an alternative in SVGFixer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Waiting needed information to proceed
Projects
None yet
Development

No branches or pull requests

4 participants