Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

@face-font issue with Firefox

  • 1 回覆
  • 2 有這個問題
  • 5 次檢視
  • 最近回覆由 cor-el

more options

Hello!

I've been a Firefox user for quite some time now, thank you!

Currently, I'm working on a new website for my business and have a custom font that I'm trying to get compatible across all browsers. For some reason, I can't seem to get the right CSS to have it work on my Firefox browser, despite the trusty Internet assuring me it should be otherwise!

This is the CSS I'm using at the moment:

@font-face {

 font-family: 'Santana';
 src: url('santana.woff2') format('woff2'),
      url('santana.woff') format('woff'),
      url('santana.ttf') format('truetype');

}

I'm wondering how I might go about circumventing this issue so that the Santana script also shows on Firefox browsers.

Thank you!

Best, Rivka

Hello! I've been a Firefox user for quite some time now, thank you! Currently, I'm working on a new website for my business and have a custom font that I'm trying to get compatible across all browsers. For some reason, I can't seem to get the right CSS to have it work on my Firefox browser, despite the trusty Internet assuring me it should be otherwise! This is the CSS I'm using at the moment: @font-face { font-family: 'Santana'; src: url('santana.woff2') format('woff2'), url('santana.woff') format('woff'), url('santana.ttf') format('truetype'); } I'm wondering how I might go about circumventing this issue so that the Santana script also shows on Firefox browsers. Thank you! Best, Rivka
附加的畫面擷圖

所有回覆 (1)

more options

The Network Monitor shows some 404 errors for requesting the Santana font from your own server and the Web Console shows 'rejected by sanitizer' issues with the Santana font.

GEThttps://rivkarothstein.showitpreview.com/santana.woff2
[HTTP/2 404 Not Found 200ms]

downloadable font: download failed (font-family: "Santana" style:normal weight:400 stretch:100 src index:0): status=2147746065 source: https://rivkarothstein.showitpreview.com/santana.woff2
GEThttps://rivkarothstein.showitpreview.com/santana.woff
[HTTP/2 404 Not Found 186ms]

downloadable font: download failed (font-family: "Santana" style:normal weight:400 stretch:100 src index:1): status=2147746065 source: https://rivkarothstein.showitpreview.com/santana.woff
GEThttps://rivkarothstein.showitpreview.com/santana.ttf
[HTTP/2 404 Not Found 160ms]

downloadable font: download failed (font-family: "Santana" style:normal weight:400 stretch:100 src index:2): status=2147746065 source: https://rivkarothstein.showitpreview.com/santana.ttf
downloadable font: OS/2: Failed to read version 5-specific fields (font-family: "Santana" style:normal weight:400 stretch:100 src index:0) source: https://static.showit.co/file/7KLkJ_-VRK-NcGnUSXBP3A/172892/santana.woff

downloadable font: OS/2: Failed to parse table (font-family: "Santana" style:normal weight:400 stretch:100 src index:0) source: https://static.showit.co/file/7KLkJ_-VRK-NcGnUSXBP3A/172892/santana.woff

downloadable font: rejected by sanitizer (font-family: "Santana" style:normal weight:400 stretch:100 src index:0) source: https://static.showit.co/file/7KLkJ_-VRK-NcGnUSXBP3A/172892/santana.woff