sapegin / grunt-webfont

SVG to webfont converter for Grunt
MIT License
1.11k stars 210 forks source link

modify 'font-face' url #352

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello, can the rendered 'font-face' url be modified? If yes, which configuration would I have to write in Gruntfile to change:

@font-face {
    font-family:"jr-icons";
    src:url("../../fonts/jr-icons.eot?bd5dbaq281bcf4acb0e946ba59bc5c3a");
    src:url("../../fonts/jr-icons.eot?#iefix") format("embedded-opentype"),
        url("../../fonts/jr-icons.woff?bd5dbaq231bcf4acb0e946ba59bc5c3a") format("woff"),
        url("../../fonts/jr-icons.ttf?bd5dbaq231bcf4acb0e946ba59bc5c3a") format("truetype"),
        url("../../fonts/jr-icons.svg?bd5dbaq231bcf4acb0e946ba59bc5c3a#jr-icons") format("svg");
    font-weight:normal;
    font-style:normal;
}

change to:

@font-face {
    font-family:"jr-icons";
    src:url("../../fonts/jr-icons.eot?balbalbalbal");
    src:url("../../fonts/jr-icons.eot?#iefix") format("embedded-opentype"),
        url("../../fonts/jr-icons.woff?balbalbalbal") format("woff"),
        url("../../fonts/jr-icons.ttf?balbalbalbal") format("truetype"),
        url("../../fonts/jr-icons.svg?balbalbalbal#jr-icons") format("svg");
    font-weight:normal;
    font-style:normal;
}

And yes, I do have to use '?balbalbalbal' - thank you