Chrome无法接收@ font-face OTF [英] Chrome not picking up @font-face OTF
本文介绍了Chrome无法接收@ font-face OTF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网站在这里不会显示"proxima"Chrome中的nova'otf,不知道为什么.这是CSS:
My site here won't pick up 'proxima nova' otf in Chrome and can't understand why.. Here's the CSS:
@font-face {
font-family:'Proxima Nova';
src: url("/Fonts/ProximaNova-Regular.otf") format('opentype');
}
任何想法都值得赞赏.
推荐答案
刚才遇到了相同的问题,您无需指定otf字体的格式,只需删除 src
的最后一部分属性:
Just encountered the same problem, you don't need to specify format for otf fonts, just remove the last part of the src
attribute:
@font-face {
font-family:'Proxima Nova';
src: url("/Fonts/ProximaNova-Regular.otf");
}
此评论帮助我解决了这个问题:
This comment helped me to sort this problem out:
https://github.com/facebook/create-react-app/issues/2609#issuecomment-311231425
这篇关于Chrome无法接收@ font-face OTF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文