为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Several Google fonts not working in Firefox 57

  • 8 个回答
  • 63 人有此问题
  • 2 次查看
  • 最后回复者为 mtbksouth

more options

Having a problem with several Google fonts not loading in Firefox 57, when they worked in 56. Tried importing the font into the style sheet and calling external stylesheet in head. Same result. No errors in Web Console to indicate a problem loading.

However, it does seem isolated to specific fonts because some don't work, and others do work.

Any ideas? I'm on Windows 7 64bit, with Firefox 57.

Having a problem with several Google fonts not loading in Firefox 57, when they worked in 56. Tried importing the font into the style sheet and calling external stylesheet in head. Same result. No errors in Web Console to indicate a problem loading. However, it does seem isolated to specific fonts because some don't work, and others do work. Any ideas? I'm on Windows 7 64bit, with Firefox 57.

被采纳的解决方案

This problem was solved by adjusting the Firefox config.

--- If locally installed fonts aren't working then this is likely a sandbox security issue. You can set this pref to 2 or 1 on the about:config page to lower the sandbox security setting.

  • security.sandbox.content.level = 1
  • close and restart Firefox to make the change effective.

If '1' still doesn't have effect then try '0' to disable the sandbox. If this didn't work then undo/reverse the change and reset the pref via the right-click context menu to the default value. --

As discussed [https://support.mozilla.org/en-US/que.../1187672]

定位到答案原位置 👍 11

所有回复 (8)

more options

Well, turns out it is because I have the same font installed locally on my system. Some of the Google fonts don't work as Web fonts in Firefox 57 when installed on the system.

I never had this problem in Firefox 56. Must be something about how Firefox handles fonts? Same font's work fine in other browsers.

Maybe this will help someone else. Thanks

more options

选择的解决方案

This problem was solved by adjusting the Firefox config.

--- If locally installed fonts aren't working then this is likely a sandbox security issue. You can set this pref to 2 or 1 on the about:config page to lower the sandbox security setting.

  • security.sandbox.content.level = 1
  • close and restart Firefox to make the change effective.

If '1' still doesn't have effect then try '0' to disable the sandbox. If this didn't work then undo/reverse the change and reset the pref via the right-click context menu to the default value. --

As discussed [https://support.mozilla.org/en-US/que.../1187672]

由cor-el于修改

more options

What sandbox setting worked for you?

Was the '2' setting sufficient?

more options

Forgot to mention that.

I set it to '2' (from '3') and that fixed the problem completely with all Google fonts.

Thanks for your help.

more options

You're welcome and thanks for confirming that 2 works.

more options

This is fine for an individual to change their settings when they notice pages aren't displaying correctly (if they realize something is wrong and the page isn't just designed terrible) but it has a big effect as a developer, we can't tell people to go change their firefox settings so they will see our page as it was designed to be.

more options

I completely agree with LMH77. Most people wouldn't know there is a problem and wouldn't know to configure their browser.

But after mentioning this problem on Mozilla and Google Font forums, this the only answer I got that worked.

The only alternative I can see is choosing one of the select Google fonts that still works when not changing Firefox configuration. Or that most people don't have the Google font installed locally, so they will see it correctly.

All I know is it worked fine Firefox 56, can we go back to that configuration on the next update? :) .. Quantum leap to using Chrome instead.

more options

Still an issue. I had to set my sandbox to 1 before it worked. Had question-marks instead of characters on numerous websites, including gmail. Had to use chrome until I found this thread.