ScerIO / icon_font_generator

☣️ Flutter Icon Font Generator
https://pub.dev/packages/icon_font_generator
Other
96 stars 50 forks source link

Package generates wrong presentation of icons #21

Open smakarov opened 2 years ago

smakarov commented 2 years ago

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

omaralmgerbie commented 2 years ago

any luck with a solution or an alternative way?

Quijx commented 2 years ago

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 commented 1 year ago

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