sapegin / grunt-webfont

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

Funny @font-face in generated HTML #331

Open jlchereau opened 8 years ago

jlchereau commented 8 years ago

This is a follow-up to #329 after adding autoHint:false and upgrading to the latest release (v1.3.1).

329 has my web.config.js.

The generated LESS file has (as before and as in the previous HTML):

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

But the generated HTML file now has:

@font-face {
    font-family:"kidoju";
    src:../../u../../r../../l../../(../../"../../k../../i../../d../../o../../j../../u../../.../../e../../o../../t../../"../../)../../;
    src:../../u../../r../../l../../(../../"../../k../../i../../d../../o../../j../../u../../.../../e../../o../../t../../?../../#../../i../../e../../f../../i../../x../../"../../)../../ ../../f../../o../../r../../m../../a../../t../../(../../"../../e../../m../../b../../e../../d../../d../../e../../d../../-../../o../../p../../e../../n../../t../../y../../p../../e../../"../../)../../,../../
../../  ../../  ../../u../../r../../l../../(../../"../../k../../i../../d../../o../../j../../u../../.../../w../../o../../f../../f../../"../../)../../ ../../f../../o../../r../../m../../a../../t../../(../../"../../w../../o../../f../../f../../"../../)../../,../../
../../  ../../  ../../u../../r../../l../../(../../"../../k../../i../../d../../o../../j../../u../../.../../t../../t../../f../../"../../)../../ ../../f../../o../../r../../m../../a../../t../../(../../"../../t../../r../../u../../e../../t../../y../../p../../e../../"../../)../../;
    font-weight:normal;
    font-style:normal;
}

Any clue what this might be?

rojorojo commented 8 years ago

I've noticed the same issue on my end as well.

fry2k commented 8 years ago

I had the same problems and posted a fix there: https://github.com/sapegin/grunt-webfont/pull/318#issuecomment-202949020

stephanebachelier commented 8 years ago

same here. The fix proposed by @fry2k in #318 did the trick.