Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Error: downloadable font: rejected by sanitizer

  • 3 回覆
  • 57 有這個問題
  • 2 次檢視
  • 最近回覆由 Saghalie

more options

- anyone have a problem with this? I can't get the CSS attribute font-face to work for downloadable fonts. @font-face {

     font-family: minecraft;
     src: url("../files/minecraft.ttf");

}

What is the sanitizer and how can I configure it to accept the downloaded font?

- anyone have a problem with this? I can't get the CSS attribute font-face to work for downloadable fonts. @font-face { font-family: minecraft; src: url("../files/minecraft.ttf"); } What is the sanitizer and how can I configure it to accept the downloaded font?

被選擇的解決方法

You get this error if you run out of memory when loading the fontfile or if there is something wrong with the layout (contents) of the fontfile. This is a protection against bad or malicious font files. It is probably possible to disable the sanitizer by setting the pref gfx.downloadable_fonts.sanitize to false in about:config but then you are no longer protected. Use at your own risk. Do not blame Mozilla if you are infected with malware.

從原來的回覆中察看解決方案 👍 5

所有回覆 (3)

more options

選擇的解決方法

You get this error if you run out of memory when loading the fontfile or if there is something wrong with the layout (contents) of the fontfile. This is a protection against bad or malicious font files. It is probably possible to disable the sanitizer by setting the pref gfx.downloadable_fonts.sanitize to false in about:config but then you are no longer protected. Use at your own risk. Do not blame Mozilla if you are infected with malware.

more options

You can also verify the fonts if it is your own website.

more options

Thanks cor-el; I will give this a try, so far it's looking good - still gotta plug it in to my CSS to see if it will work.

This is for my college class so thanks for the speedy reply - I lost power over the last week with Ice storms and trees falling all around me - so please forgive the lateness of the reply.

Regards,

Saghalie

Halo Wawa, Boire du Cafe'

由 Saghalie 於 修改