ScerIO / icon_font_generator

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

Unable to generator icon #9

Open 0Vipin0 opened 3 years ago

0Vipin0 commented 3 years ago

I tried to create simple icons from svg but this error was given:

ttf2woff2@2.0.3 install C:\Users\Vipin Malik\AppData\Roaming\Pub\Cache\global_packages\icon_font_generator\node_modules\ttf2woff2 (node-gyp rebuild > builderror.log) || (exit 0)

Is this issue related to the package side or my side?

joffre commented 3 years ago

Hello, I have the same problem. it doesn't go further...

ttf2woff2@2.0.3 install D:\Dev\sdk\cache\pub\global_packages\icon_font_generator\node_modules\ttf2woff2 (node-gyp rebuild > builderror.log) || (exit 0)

On : Dart SDK version: 2.10.4 (stable) (Wed Nov 11 13:35:58 2020 +0100) on "windows_x64"

mzdm commented 3 years ago

Had the same issue.

Make sure the file name of SVG files does not have dash(es): -

However, when I fixed it now it is stuck in an infinite loop...

flakerimi commented 3 years ago

Check node version, this is node error.

joffre commented 3 years ago

The first thing I found out is that destination folders are not created by this package if they don't exist. You have to create them manually ... After that I was able to generate them under my linux OS.

andreyp3054 commented 2 weeks ago

To generate the icons, use the working command dart run icon_font_generator:generator.

ex. dart run icon_font_generator:generator assets/svg/ fonts/my_icons_font.otf --output-class-file=lib/my_icons.dart -r

Refer to this pull request https://github.com/ScerIO/icon_font_generator/pull/37