-
Notifications
You must be signed in to change notification settings - Fork 73
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
SVG not rending properly #53
Comments
Issue was fixed by making everything a compound path in illustrator. But a fix from the package would be better as it needs help from the designers. |
@TheBrainTeam My recommendation would be to add SVGO to your tool chain to take a pass over your SVGs before you create the font – I believe you'll be most interested in the mergePaths option. I've used SVGO along with this package for awhile and it really cleans SVGs up nicely. |
I honestly think that designers should take care about where their designs are going to be show. I have lost a lot of time fixing designs that are wonderful to be printed out, but a disaster to be displayed in a web. |
I have the same issue trying to create my own icon font from google material icons.
|
I've downloaded it, passed through SVGO (https://jakearchibald.github.io/svgomg/) and the generated font seems ok: The SVG code:
|
As @adripanico mentioned: passing an svg to SVGO first would be good. One thing for this to work is missing though: In the config: Would it be possible to pass raw data instead of a path? |
As @kolohelios mentioned: passing svgs to SVGO fixed my problem |
@adripanico Have you used a special SVGO config for this? I have the same problem with the "sketchy" looking icons - even after SVGO execution. I use the following SVGO config plugins:
- convertPathData:
noSpaceAfterFlags: false
- mergePaths:
noSpaceAfterFlags: false and execute with
Edit as from #45 - setting |
just to confirm, i also did not use svgo and just setting --height 500 works perfectly, |
My solution was to merge the SVG paths and eliminate transforms before exporting them, then generating the font. |
Does anyone know why you have to use these seemly random configurations? |
Hi,
This SVG is not rendering properly. I was using 2.1.8 and updated to 2.1.10 and it is still have the issue.
Is there any things that I need to keep in mind when creating, grouping or exporting SVGs?
percent.zip
Also does any of these work as some of the icons generated have height/width in fractions.
--normalize Normalize icons sizes (Default: false)
--mono Make font monospace (Default: false)
--height Fixed font height value
Love the app.
Thank you
The text was updated successfully, but these errors were encountered: