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

搜尋 Mozilla 技術支援網站

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

了解更多

How to restore broken icons with individual fonts enabled?

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

more options

With disabled "Allow pages to choose their own fonts, instead of your selections above" (https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use#w_custom-fonts) icons on sites like Google News (https://news.google.com) are broken, as shown here: https://i.imgur.com/p7wlCPn.png

Enabling this setting brings them back again: https://i.imgur.com/Vw4W2HY.png

But how can I have properly rendered icons with individual fonts enabled, read, with disabled "Allow pages to choose their own fonts, instead of your selections above"?

I'm using FF 60.0.1 on Ubuntu 17.10.

Thanks in advance!

With disabled "Allow pages to choose their own fonts, instead of your selections above" (https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use#w_custom-fonts) icons on sites like Google News (https://news.google.com) are broken, as shown here: https://i.imgur.com/p7wlCPn.png Enabling this setting brings them back again: https://i.imgur.com/Vw4W2HY.png But how can I have properly rendered icons with individual fonts enabled, read, with disabled "Allow pages to choose their own fonts, instead of your selections above"? I'm using FF 60.0.1 on Ubuntu 17.10. Thanks in advance!

所有回覆 (5)

more options

Instead of using images for icons (which was the common practice in the past), many sites now use a custom font to display icons. This means that the website has to have the ability to load it's own fonts or else you won't be able to view the icons properly.

more options

What you want is probably not possible. When you disable website fonts then Firefox won't be able to use an icon font that must be downloaded. Such icon fonts probably won't work when installed locally event if you would install this each time you come across such a font. Maybe instead use code in userContent.css to override the font used on web pages.

What specific reason do you have to disable website fonts knowing that this will cause the issues you mentioned?

more options

cor-el said

What specific reason do you have to disable website fonts knowing that this will cause the issues you mentioned?

It's not about disabling website fonts at all, but mainly having one font to ensure a consistent look and feel.

I remember that some years ago I had the same issue with other sites. Luckily a Firefox update resolved it...

more options

If you disable "Allow pages to choose their own fonts, instead of your selections above" then this is the equivalent of disabling website fonts and this includes icon fonts. If you want to enforce a specific font then a better way is using (possibly website specific via @-moz-document domain()) code in userContent.css.

more options

According to this statement, icon fonts actually should load even with disabled website fonts.

Quote: If you want regular fonts to be blocked and icon fonts to be downloaded (default from Firefox 41 on for users who have disabled the fonts preference in the Firefox options):

Set browser.display.use_document_fonts to 0 and gfx.downloadable_fonts.enabled to true

I also checked in the safe mode (where all add-ons are disabled), but still don't see those icons.

Is this a bug or am I misinterpreting something?