fantasticon icon indicating copy to clipboard operation
fantasticon copied to clipboard

BUG: when changing the --selector still the icons.html file with the "icons" prefix is generated

Open teclab-at opened this issue 4 years ago • 2 comments

Have changed the --selector to foo, still the icons.html is generated with "icons" prefix:

<span class="inner">
<i class="**icon** icon-cistern-full"></i>
</span>
<br>
<span class='label'>cistern-full</span>
</div>

... and the icons.html does not work anymore.

teclab-at avatar Nov 01 '20 22:11 teclab-at

Yes, I have the same issue.

prefix defaults to icon.

But it seems it can't be changed. There is no separate prefix parameter.

It would be cool to be able to use:

fantasticon svg -o iconfont -h 1000 --descent 128 -n icons --prefix ki

For the file results to be icons.css/icons.html but the prefix to be ki.

Now, if I use ki as a name:

fantasticon svg -o iconfont -h 1000 --descent 128 -n ki,

I do get ki.html but then, like in @tec-lab 's example, the output of <i class=" still says icons, while in the docs it states that name is the “base name of the font set used both as default asset name and classname prefix (default: icons)

Wolfr avatar Nov 17 '20 14:11 Wolfr

I think @Wolfr is right. It's about a feature request to split name and prefix and a bug report, that the name parameter doesn't change the prefix.

sualko avatar Dec 02 '20 11:12 sualko