我有一段時間沒有問題的使用font-face的項目。 今天我檢查和字體面對火狐v14和v15不工作,也可以不工作在v12 +作爲在這個線程的情況:http://css-tricks.com/forums/discussion/17337/font-face-problem-with-firefox-v-12/p1 我的問題是完全一樣的在前面的線程。字體在Firefox上不起作用。在其他人身上運作良好
總結。 我使用的字型加載網頁字體是這樣的:
@font-face {
font-family: 'TradeGothicLTStdCnBold';
src: url('/jovenestalentos/fonts/tradegothicltstd-bdcn20-webfont.eot');
src: url('/jovenestalentos/fonts/tradegothicltstd-bdcn20-webfont.eot?#iefix') format('embedded-opentype'),
url('/jovenestalentos/fonts/tradegothicltstd-bdcn20-webfont.woff') format('woff'),
url('/jovenestalentos/fonts/tradegothicltstd-bdcn20-webfont.ttf') format('truetype'),
url('/jovenestalentos/fonts/tradegothicltstd-bdcn20-webfont.svg#TradeGothicLTStdCnBold') format('svg');
font-weight: normal;
font-style: normal;
然後
#bea .bea {
font-family: 'TradeGothicLTStdCnBold';
font-size: 14px;
}
的字體是根據螢火蟲正確加載。 它適用於safari,chrome,IE和某些firefoxs。 我試過6個firefox(v13-15),它在其中的一些而不是其他的。我無法確定任何理由。
我也在尋找Firefox的配置值 gfx.font_rendering.cleartype.always_use_for_content; 我注意到在我測試的所有firefox中都設置爲false,即使是正常工作的。
活生生的例子: http://comoquierascolacao.com/jovenestalentos/
應該怎麼看: http://postimage.org/image/n2r9fxdsv/
總結: - 的路由工作。 - 路由處於相同的域中,沒有跨域問題。 - 它可以在一些Firefox中使用,並且不會在別人使用(沒有理由我可以弄清楚)。 - 之前它可以在我自己的Firefox中工作,也許在v12之前。
謝謝大家,任何幫助將不勝感激,因爲這是讓我瘋狂。
您是否嘗試過Google Web字體?它們提供了更好的跨瀏覽器支持。也許你可以從他們的源代碼中獲得靈感。 – Raptor
是的,我做到了。不幸的是,我的客戶想要的是字體而不是另一種。每當他們讓我使用谷歌網頁字體。謝謝。 –