Workshape / icon-font-generator

Easy-to-use, pre-configured cli tool to generate webfont icon kits from a bunch of .svg files
MIT License
471 stars 76 forks source link

Multiple icon fonts clash due to same (and non-settable) font-family name #72

Closed tkafka closed 4 years ago

tkafka commented 4 years ago

Hello, I am using icon-font-generator to create multiple sets of icons (3 families of Streamline icons), but I can't use them together, because in generated icons.css file, all three variants get font-family: "icons". This way, I then import 3 css files, and the font definitions override each other.

I think this needs another parameter (similar to --prefix) to set the custom font-family name, so that I could generate each icon font with a specific font-family and use them on a same page.

tkafka commented 4 years ago

Aha, this is what the n or name parameter means :). https://github.com/Workshape/icon-font-generator/blob/aecddedb27a9beb5f3639a62182cf452ed06c268/bin/icon-font-generator#L27