Android 2.3.4 不加载 FontSquirrel 字体?

标签 android webfonts

我一直在使用 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;
}

最佳答案

请注意 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;

}

关于Android 2.3.4 不加载 FontSquirrel 字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8844417/

相关文章:

android - 应用未在适用于平板设备的 Google Play 商店中列出

android - 在 Android NDK 上打开

javascript - 如何检测谷歌网络字体何时准备好并显示在页面中?

css - "Source Sans Pro"字体粗细 : 400 displays bolder than 600 on Chrome, Safari 和 Firefox

html - @font-face 在某些计算机上不起作用

android - 适用于网站的 iOS 和 Android App Shell - 哪种技术最有效? WebView ?渐进式应用程序?

java - 如何检测后台服务或 Android native 环境中的音量按钮单击?

android - 任务 ':app:transformClassesWithDexForDebugAndroidTest' 执行失败。 > com.android.build.api.transform.TransformException

javascript - jQuery 插件中文本问题的 Webfont 和宽度

caching - 如何使用 Vercel/Next.js 改进字体加载/缓存?