Downloadable font on firefox: bad URI or cross-site access not allowed

后端 未结 4 770
终归单人心
终归单人心 2020-12-01 00:18

I\'m a webmaster at http://www.beperk.com (I\'m giving you the URL so you are able to check the problem) and I\'m having lots of problems using @font-face in CSS.

I

4条回答
  •  醉话见心
    2020-12-01 00:39

    try to use implemented base64-encoded fonts like:

    @font-face {
     font-family:"font-name";
     src:url(data:font/opentype;base64,[paste-64-code-here]);
     font-style:normal;
     font-weight:400;
    }
    

    see: http://sosweetcreative.com/2613/font-face-and-base64-data-uri

    it worked perfectly.

提交回复
热议问题