How to embed fonts in CSS?

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

    I used Ataturk's font like this. I didn't use "TTF" version. I translated orginal font version ("otf" version) to "eot" and "woof" version. Then It works in local but not working when I uploaded the files to server. So I added "TTF" version too like this. Now, It's working on Chrome and Firefox but Internet Explorer still defence. When you installed on your computer "Ataturk" font, then working IE too. But I wanted to use this font without installing.

    @font-face {
        font-family: 'Ataturk';
        font-style: normal;
        font-weight: normal;
        src: url('font/ataturk.eot');
        src: local('Ataturk Regular'), url('font/ataturk.ttf') format('truetype'), 
        url('font/ataturk.woff') format('woff');
    }
    

    You can see it on my website here: http://www.canotur.com

提交回复
热议问题