@fontface on blackberry os 7

寵の児 提交于 2020-01-06 07:37:29

问题


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');}

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 advance David


回答1:


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;
}


来源:https://stackoverflow.com/questions/12780686/fontface-on-blackberry-os-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!