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

Add a step to clean up SVG files before compiling the font #1

Open
voidgraphics opened this issue Apr 15, 2021 · 0 comments
Open

Add a step to clean up SVG files before compiling the font #1

voidgraphics opened this issue Apr 15, 2021 · 0 comments

Comments

@voidgraphics
Copy link
Member

voidgraphics commented Apr 15, 2021

First we must run the svg through this to convert strokes to outlines, then through SVGO to clean everything up. The default settings as seen on SVGOMG should be fine.

This will ensure that the SVGs are properly formatted for use with fontello, and also reduce the file sizes all around.

The cleaned SVG files should probably not replace the source ones, but instead be stored in the storage directory or something, so that the files do not go through the optimisation process more than once, which could result in unwanted side effects.

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

1 participant