jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
542 stars 85 forks source link

Npm script and .svgtofontrc file #211

Closed bckthomas closed 1 year ago

bckthomas commented 1 year ago

Hi, I use svgtofont 4.0.0 with a npm script "svgfont": "svgtofont --sources Resources/Private/Src/Icons --output Resources/Public/Fonts"

I have this config in config/.svgtofontrc

{
  "fontName": "icon",
  "css": true
}

When I execute npm run svgfont, font is created with svgtofont name, not icon, and the css files are not created. It seems that the config file is not used.

Can someone help me please ? Thanks

jaywcjlove commented 1 year ago

@bckthomas The error is not reproducible, please provide an example of how the error can be reproduced

bckthomas commented 1 year ago

Ok, my bad, svg file contained errorrs