2012-01-31 31 views
3

我在我的網站(Teuton23ProRegular)上使用font-face,並且字體未通過Android ICS(嘗試原生瀏覽器和Firefox),並且在所有其他桌面上看起來不錯和我試過的手機(Android Gingerbread, iPhones, Win Mobile)。移動螢火透露此錯誤:字體不適用於Android冰淇淋三明治瀏覽器

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")

任何想法將不勝感激。

回答

1

如果Trade Gothic W02 Bold 2正在工作,但不是Teuton23ProRegular,那麼通過邏輯推理,問題可能在於字體文件或字體聲明的內容。

我不熟悉的Android冰淇淋三明治瀏覽器的字體渲染,它利用格式(看起來像它使用.woff給出的錯誤通知),但它似乎像Teuton23ProRegular字體面文件沒有工作,因爲:

  • a)中缺乏的EOT,EOT修復,WOFF,TrueType或SVG格式 一個(取冰淇淋用途,但特別強調.woff)
  • b) 它具有適當的字體格式的變體,但其故障或 損壞
  • c)你的代碼在 的地方有一些拼寫錯誤或流氓逗號?
  • d)不小心未上傳正確格式文件 ,因此其不被加載

請仔細比較,你如何申報Teuton23對貿易的哥特式等效檢查上述所有。

相關問題