gpt4 book ai didi

android - 字体在 Android Ice Cream Sandwich 浏览器上不起作用

转载 作者:太空狗 更新时间:2023-10-29 14:28:46 25 4
gpt4 key购买 nike

我在我的网站 (Teuton23ProRegular) 上使用 font-face 并且字体在 Android ICS 上没有显示(尝试过 native 浏览器和 Firefox),并且正在寻找在我尝试过的所有其他台式机和手机上都很好 (Android Gingerbread、iPhone、Win Mobile)。 Mobile firebug 显示此错误:

Error: downloadable font: not usable by platform (font-family: "Teuton23ProRegular" style:normal weight:normal stretch:normal src index:2)
Source File: http://[sitename]/../css/fonts/teuton23pro-webfont.woff
Line: 0

源代码:

@font-face {
font-family: 'Teuton23ProRegular';
src: url('../../css/fonts/teuton23pro-webfont.eot');
src: url('../../css/fonts/teuton23pro-webfont.eot?iefix') format('eot'),
url('../../css/fonts/teuton23pro-webfont.woff') format('woff'),
url('../../css/fonts/teuton23pro-webfont.ttf') format('truetype'),
url('../../css/fonts/teuton23pro-webfont.svg#Teuton23ProRegular') format('svg');
font-weight: normal;
font-style: normal;

另一个有趣的事情是我从http://fonts.com/得到的字体工作正常 ("Trade Gothic W02 Bold 2")

如有任何想法,我们将不胜感激。

最佳答案

如果 Trade Gothic W02 Bold 2 工作正常但 Teuton23ProRegular 不工作,那么通过逻辑推论,问题可能出在字体文件的内容或字体声明上。

我不熟悉 Android IceCream Sandwich 浏览器的字体渲染和它使用的格式(看起来它使用 .woff 给出错误通知)但它似乎 Teuton23ProRegular 字体文件不工作,因为:

  • a) 它缺少 eot、eot fix、woff、truetype 或 svg 格式之一(无论使用哪种冰淇淋,但特别强调.woff)
  • b)它确实有正确的字体格式变体,但它有问题或损坏的
  • c) 你在某个地方有一些拼写错误或流氓逗号你的代码?
  • d) 你不小心没有上传正确格式的文件因此它没有被加载

请通过比较您声明 Teuton23 与 Trade Gothic 等价物的方式来仔细检查以上所有内容。

关于android - 字体在 Android Ice Cream Sandwich 浏览器上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9075079/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com