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

搜索 | 用户支持

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

详细了解

Why does the @font-face work in a Private Tab, but not in a normal Tab?

  • 1 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 gnittala

more options

I consistently find that the @font-face does not work in Firefox unless I use a Private Tab, but I prefer to use a regular Tab so that I can keep track of what pages I have visited. In a Private Tab the Android app displays Hebrew with cantillation marks as nicely as Windows does using the very same font. This is probably an unintended bug, as I cannot imagine why you would want Private Tabs to work better than the regular ones. The css function in question is:

@font-face { font-family: 'Shlomo LB'; src: url('../ShlomoLightBold.ttf') format('truetype'); font-weight: normal; font-style: normal; }

I consistently find that the @font-face does not work in Firefox unless I use a Private Tab, but I prefer to use a regular Tab so that I can keep track of what pages I have visited. In a Private Tab the Android app displays Hebrew with cantillation marks as nicely as Windows does using the very same font. This is probably an unintended bug, as I cannot imagine why you would want Private Tabs to work better than the regular ones. The css function in question is: @font-face { font-family: 'Shlomo LB'; src: url('../ShlomoLightBold.ttf') format('truetype'); font-weight: normal; font-style: normal; }

所有回复 (1)

more options

Hello,

Thank you for bringing this up. There is an open issue in Bugzilla - src:local() @font-face rules doesn't work on Android. But in this case you are mentioning a src:url, so I don't know if they are related.

Also, can you please confirm if you are using NoScript or any other plugin on your browser and if there are settings that differ for the normal tabs vs. private tabs (noscript has an option to block @font-face).

Would it be possible for you to create a sample for testing this?

Thank you

由gnittala于修改