Using custom fonts using CSS?

后端 未结 8 618
余生分开走
余生分开走 2020-11-22 09:01

I\'ve seen some new websites that are using custom fonts on their sites (other than the regular Arial, Tahoma, etc.).

And they support a nice amount of browsers.

8条回答
  •  伪装坚强ぢ
    2020-11-22 09:36

    I am working on Win 8, use this code. It works for IE and FF, Opera, etc. What I understood are : woff font is light et common on Google fonts.

    Go here to convert your ttf font to woff before.

    @font-face
    {
        font-family:'Open Sans';
        src:url('OpenSans-Regular.woff');
    }
    

提交回复
热议问题