-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feature request: tool to convert paths with fill-rule="evenodd" to fill-rule="nonzero" #1092
Comments
@jwilson8767 hi, are you solved this problem? |
This would make it easier to export custom icons from various design tools into a custom FontAwesome package via a plugin. Their system relies on the default |
@eli-crow Check out nfroidure/svgicons2svgfont#62 where more discussion was done on this. |
Maybe this wasm module can solve the fill-rule problem https://www.npmjs.com/package/pathkit-wasm?activeTab=readme |
FYI it can be done with picosvg
|
I get this error:
|
I found more about this problem at StackOverflow. Hope it is helpful. Searching for an node library for that problem. |
Found a library for outlining svgs which worked for me well. |
So I have an interesting case where I'm having issues with
fill-rule="evenodd"
not working properly with compound shapes (inner holes) and I'm wondering if svgo could have a plugin to convert these paths tofill-rule="nonzero"
in a similar method as FontForge's "Correct Direction" tool (source here: https://github.com/fontforge/fontforge/blob/ae2f40b2f213b2d645d5a9f1e7a55475cbfe84ea/fontforge/scripting.c#L5505) which would essentially re-wind the points of internal paths.Thoughts?
The text was updated successfully, but these errors were encountered: