2012-01-13 24 views
3

我一直在我們的網絡應用程序中使用Pictos和FontSquirrel作爲花哨的dancy圖標和排版。今天我看到Droid手機和Android 2.3.4(在VirtualBox上運行)根本不顯示字體。爲了記錄,Google自己的網絡字體DO會正確顯示。Android 2.3.4不加載FontSquirrel字體?

是否有已知的解決方法?

@font-face { 
    font-family: 'Pictos'; 
    src: url('pictos-web.eot'); 
    src: local('☺'), url('pictos-web.woff') format('woff'), url('pictos-web$ 
    font-weight: normal; 
    font-style: normal; 
} 

回答

6

注意,您所使用的bulletproofbulletproof smiley方法沒有在Android手機上運行。

嘗試使用Fontspring語法。

例子:

@font-face { 
    font-family: 'Pictos'; 
    src: url('pictos-web.eot'); 
    src: url('pictos-web.eot?#iefix') format('embedded-opentype'), 
     url('pictos-web.woff') format('woff'), 
     url('pictos-web.ttf') format('truetype'), 
     url('pictos-web.svg#UbuntuBold') format('svg'); 
    font-weight: normal; 
    font-style: normal; 

} 
1

如果消除了笑臉語法不工作... Android上一些瀏覽器拒絕「純網上」字體。您可以在沒有保護的情況下通過fontsquirrel生成器運行它們,並使用未受保護的woff文件。