@font-face - how to make it work on all browsers

前端 未结 4 1918
后悔当初
后悔当初 2020-12-06 07:58

The @font-face rule is supported in Internet Explorer 9, Firefox, Opera, Chrome, and Safari.

However, Internet Explorer 9 only supports .eot typ

4条回答
  •  一向
    一向 (楼主)
    2020-12-06 08:57

    Firstly, you don't have the copyright to embed most fonts - anyone can download them, so it's no different to putting the font on your server for someone to download.

    My advice would be to use the font squirrel tool found here: http://www.fontsquirrel.com/fontface/generator to generate the files and the code for you.

    Be careful not to share fonts you don't have the rights to do so with.

提交回复
热议问题