本文介绍了@fontface on blackberry os 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试加载一个工作正常的字体,但不是在黑莓OS 7上
I am trying to load a font that works fine everywhere but not on blackberry OS 7
@font-face {font-family: 'CCDoohickeyOpen';src: url('webfonts/244FAC_0_0.eot');
src: url('webfonts/244FAC_0_0.eot?#iefix')
format('embedded-opentype'),url('webfonts/244FAC_0_0.woff') f
ormat('woff'),url('webfonts/244FAC_0_0.ttf')
format('truetype'),url('webfonts/244fac_0_0-webfont.svg#CCDoohickeyOpen')
format('svg');}
页面位于我做错了什么?讽刺的是,其他网站的其他网络字体似乎在bb 7上工作得很好。感谢提前
David
the page is at http://lisp.li what am I doing wrong? Ironically other web fonts from other sites seems to work fine on bb 7. thanks in advanceDavid
推荐答案
只有SVG文件
BB OS5,6和7上的Blackberry浏览器仅支持SVG字体文件(可以使用fontsquirrel从其他格式转换)。
BB supports only SVG Files
The Blackberry browser on BB OS5, 6 and 7 only supports SVG font files (you can use fontsquirrel to convert from other formats).
@font-face {
font-family: 'CCDoohickeyOpen';
src: url('webfonts/244fac_0_0-webfont.svg#CCDoohickeyOpen') format('svg');
font-weight: normal;
font-style: normal;
}
这篇关于@fontface on blackberry os 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!