Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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