Make Adobe fonts work with CSS3 @font-face in IE9

前端 未结 19 2199
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 10:04

I\'m in the process of building a small intranet application and try, with no luck, to use Adobe font I purchased lately. As I was informed, in our case it\

19条回答
  •  鱼传尺愫
    2020-11-27 10:32

    I wasted a lot of time because of this issue. Finally I found great solution myself. Before I was using .ttf font only. But I added one extra font format .eot that started to work in IE.

    I used following code and it worked like charm in all browsers.

    @font-face {
    font-family: OpenSans;
    src: url(assets/fonts/OpenSans/OpenSans-Regular.ttf), 
    url(assets/fonts/OpenSans/OpenSans-Regular.eot);
    }
    
    @font-face {
    font-family: OpenSans Bold;
    src: url(assets/fonts/OpenSans/OpenSans-Bold.ttf),
    url(assets/fonts/OpenSans/OpenSans-Bold.eot);
    }
    

    I hope this will help someone.

提交回复
热议问题