-
-
Notifications
You must be signed in to change notification settings - Fork 210
Distorted Icon Rendering from generated Webfont #321
Comments
I tried tried to upgrade from 0.4.8 and it seems like the icons are rendered worse for each version. In version 1.2.0 my icons don't render at all. |
@oller did you try using the fontforge engine, it seems that node is no longer supported? I also found that flattening the transparencies and expanding paths in illustrator also ironed out a few issues. |
With further investigation, this breaking change came in between I assume it's one of the changes in dependencies in during this bump: v0.4.2...v0.4.3 In the meantime, I've rolled back to 0.4.2 and found some workarounds for the more limited templating options. |
Any updates? Still have those terrible icons with |
Well, maybe issues in SVGO indeed... So, you example doesn't seems as broken, as ones I've encountered. Anyway, I don't have where to test it out anymore anyway. We've just switched to inlined SVG, and that fixed our issue :) |
Hi.. i have the same issue with both, node and fontforge rendering. Is there any solution to fix the problem ? These are my relevant grunt options:
And i am working on a windows 10 desktop |
I only this week revisited this and resolved my issue @me1k . For me, the crux of the problem was that fontHeight and the corresponding dimensions of the SVGs. This lib now wants the SVGs to be 512 or bigger. I think at that scale it's kinder if you imagine the decimal points of the coords in the SVG. Short of it, I used https://github.com/vieron/svg-resizer as a quick CLI tool to batch proportionally enlarge all my svg's to 512px. (this script updated the Hope this helps |
As @motet-a noted earlier, I think this happens when smaller SVGs are run through the SVGO optimization and all your long decimal coordinates get rounded off. This is why the tool works best with larger viewboxes. |
I am having the same problem; however, none of the solutions presented here are helping. Here's a snippet of the Gruntfile:
|
In 2018 I would recommend to drop iconic webfonts and use SVG instead |
@ArmorDarks I would, but I'm using this for generating a color emoji font, not an icon font. |
Hello, are there any updates? |
Hi there,
Bumping to
v1.1.1
for the improved templating options, my font is now coming out rather distorted.Some examples:
The relevant grunt options:
All the source SVG's are 31px width and height and viewport. I've tried buming these all to 512px and updating the
fontHeight
option, didn't fix the issue.I have also brew installed
ttfautohint
, but this doesn't seem to change the output.Anyone else encountering this problem?
The text was updated successfully, but these errors were encountered: