jeerbl/webfonts-loader

How to generate variables for icon codecs?

devalexqt opened this issue · 2 comments

I need to use fonticon in css pseudo elements, now I specify character code like so:

    a:before{
        font-family: 'fonticons';
        content: "\f102"; / * this code for 1.svg */
        color:red;
    }

But if I add new svg to my icon font build when character code can be changed (if new svg file change folder structure), and on page will be displayed wrong icon!
How to fix this?

Use codepoints

Ex.

codepoints: {
    settings: 0xe001,
  },

This will generate stable identifier for the settings.svg

Stale issue message