-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Scale the icons when viewBox and width/height differs #9
Labels
Comments
+1 |
Done 44e3dd6 |
Hey @nfroidure this actually didn't solve the issue.. |
Fantasticon has faced similar issues regarding fonts not being vertically centered properly in some cases. |
The code for calculating bounds sits here : https://github.com/nfroidure/svg-pathdata/blob/master/src/SVGPathDataTransformer.ts#L521-L619 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The process should be:
Specs:
http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
http://www.w3.org/TR/SVG/coords.html#PreserveAspectRatioAttribute
The text was updated successfully, but these errors were encountered: