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

Package generates wrong presentation of icons #21

Open
smakarov opened this issue Jan 3, 2022 · 3 comments
Open

Package generates wrong presentation of icons #21

smakarov opened this issue Jan 3, 2022 · 3 comments

Comments

@smakarov
Copy link

smakarov commented Jan 3, 2022

Hi there!
Here my test command
icon_font_generator --from=assets/icons --class-name=UiIcons --out-font=assets/fonts/ui_icons.ttf --out-flutter=lib/ui_icons.dart --normalize

Here icon from font created using fluttericon.com and beside using this package
https://i.imgur.com/UQ2Pdx9.png

Here the icon
https://disk.yandex.ru/i/c3_MyGWjkCBMFg

@smakarov smakarov changed the title Package generates wrong size and presentation of icons Package generates wrong presentation of icons Jan 3, 2022
@omaralmgerbie
Copy link

any luck with a solution or an alternative way?

@Quijx
Copy link

Quijx commented Jan 31, 2022

I had this issue too. For me it was caused by <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon> in the svg file that was there for some reason in addition to the path containing the icon. Deleting that worked. Other generators such as https://www.fluttericon.com/ or https://icomoon.io/app do not seem to have a problem with this though.

@mozerrr
Copy link

mozerrr commented Sep 30, 2022

Before generating icons, try using svg-fixer. A similar error can happen in all generators, the problem is described in more detail here.

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

4 participants