How to embed fonts in CSS?

后端 未结 6 1681
你的背包
你的背包 2020-11-27 04:37

I want to use some fonts and I want it to work without having this font on the client computer. I have done this but doesn\'t work:

@font-face {
    font-fam         


        
6条回答
  •  半阙折子戏
    2020-11-27 05:07

    Following lines are used to define a font in css

    @font-face {
        font-family: 'EntezareZohoor2';
        src: url('fonts/EntezareZohoor2.eot'), url('fonts/EntezareZohoor2.ttf') format('truetype'), url('fonts/EntezareZohoor2.svg') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    

    Following lines to define/use the font in css

    #newfont{
        font-family:'EntezareZohoor2';
    }
    

提交回复
热议问题