How to embed fonts in CSS?

后端 未结 6 1678
你的背包
你的背包 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:13

    Go through http://www.w3.org/TR/css3-fonts/

    Try this:

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

提交回复
热议问题