nfroidure / svgicons2svgfont

Concatenate SVG icons and ouput an SVG font
http://nfroidure.github.io/svgiconfont/
MIT License
337 stars 71 forks source link

Support for svg without explicit size #150

Closed lmartorella closed 2 years ago

lmartorella commented 2 years ago

Fixes #

When a svg doesn't explicitly set a size or a viewport, it is possible to calculate the current bounds using the path. In addition (if you think it useful), it is possible to specify a usePathBounds flag to always ignore the viewport specifications and calculate the icon bounds instead.

Thanks, L

Code quality

License

To get your contribution merged, you must check the following.

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.8%) to 57.797% when pulling c059983e60c0ccbf7c82a5de3a83ebb8000975b4 on iongroup:fix/bounds into 26d09143949ac8816fdac5ce30bc34350e50e770 on nfroidure:master.