我一直在使用 Pictos 和 FontSquirrel 在我们的网络应用程序上制作花哨的图标和排版。今天我看到Droid 手机和Android 2.3.4(在VirtualBox 上运行)根本不显示字体。作为记录,谷歌自己的网络字体确实可以正常显示。
是否有已知的解决方法?
@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;
}
最佳答案
请注意 bulletproof和 bulletproof 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;
}
关于Android 2.3.4 不加载 FontSquirrel 字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8844417/