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

Issue with rotated SVGs #141

Closed
mathiasnovas opened this issue Apr 5, 2017 · 2 comments
Closed

Issue with rotated SVGs #141

mathiasnovas opened this issue Apr 5, 2017 · 2 comments

Comments

@mathiasnovas
Copy link

I'm having some issues with rotated SVGs generated by Sketch. They appear fine in Finder, and upon inspection the generated code looks right as well. The issue occurs when I use the iconfont.

See screenshot:
screenshot
The rotated SVG is the one floating adrift on the left.

As a temporary solution, I've adjusted the transform property on the polygon so that it appears correctly rotated.

Do you have any ideas why this might be happening? 🤔

@mathiasnovas
Copy link
Author

Apprently this issue can also be solved by flattening the SVG in Sketch before exporting it, which resets the rotation. At this point I'm not sure if there's any need for patching gulp-iconfont... 🙃

@nfroidure
Copy link
Owner

nfroidure commented Apr 5, 2017

It is probably a https://github.com/nfroidure/svgicons2svgfont issue.

Maybe due to the order in which transformations are applyed.

If you could put the original failing icon and the one you manually modified by moving the rotation in an issue in the above project, it would give a chance to fix it.

The issue that gather transformation problems:
nfroidure/svgicons2svgfont#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants