清除Firefox字体缓存 [英] Clear firefox font cache

查看:82
本文介绍了清除Firefox字体缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:这不是重复的 如何重置CSS字体缓存参见问题底部

Note: this is not a duplicate of How to reset css fonts cache See the bottom of my question

TL; DR

我正在寻找一种清除Firefox字体缓存的可靠方法,因为CTRL + F5CTRL + SHIFT + R似乎都不起作用.

TL;DR

I'm searching for a reliable way of purging the font cache of Firefox as neither CTRL+F5 nor CTRL+SHIFT+R seems to work.

我在服务器上使用自定义字体(通过CSS)

I'm using a custom font (via css) on my server:

@font-face {
    font-family: MySymbols;
    src: url(../fonts/MySymbols.woff);
}

我最近在字体中添加了另一个符号(Unicode:21C5/⇅).

I recently added another symbol to the font (Unicode: 21C5 / ⇅).

它应该看起来像这张图中的两个箭头.屏幕截图来自Chrome,可以正确显示:

It should look like the two arrows in this picture. The screenshot is from Chrome, which displays it correctly:

之后的两个"u"用来证明我正在加载正确的字体.左边的使用MySymbols作为字体系列,右边的使用标准字体.

The two "u"s after that are there to prove that I'm loading the correct font. The left one uses MySymbols as font-family and the right one uses a standard font.

现在使用Firefox,它看起来像这样:

Now with Firefox it looks like this:

看起来Firefox仍在使用旧字体.左侧的"u"表示可以正确显示,但是Firefox使用箭头将标准字体用作后备广告.

It looks like Firefox still uses the old font face. The left "u" is displayed correctly, but for the arrows Firefox uses a standard font as fallback.

当我将src: url(../fonts/MySymbols.woff);更改为src: url(../fonts/MySymbols_something.woff);并相应地在服务器上重命名字体文件时,Firefox会正确显示以下内容:

When I change src: url(../fonts/MySymbols.woff); to src: url(../fonts/MySymbols_something.woff); and rename the font file on the server accordingly Firefox correctly displays the following:

当我同时更改两个名称时,Firefox再次使用错误的箭头显示上述图片,这非常令人沮丧.

When I change back both names Firefox displays the aforementioned picture with the wrong arrows again, which is very frustrating.

我知道以下线程:如何重置CSS字体缓存 我研究了所有解决方案.他们都没有工作. 我特别检查了以下内容:

I'm aware of the following thread: How to reset css fonts cache And I worked through all of the solutions. None of them worked. In particular I checked the following things:

  • 我尝试按CTRL + F5
  • 我尝试按CTRL + SHIFT + R(以前曾经工作)
  • 我重新启动了Firefox,关闭了选项卡,然后再次打开了
  • 在我的系统目录中的任何位置都找不到该字体.我用sudo updatedb; locate MySymbols.woff检查过,我自己还没有安装字体,我猜这个名字不是很常见
  • CSS是正确的,并且可以在Chrome中完美运行
  • I tried pressing CTRL+F5
  • I tried pressing CTRL+SHIFT+R (which used to work some time ago)
  • I restarted firefox, closed the tab and opened it again
  • The font isn't found anywhere in my system directories. I checked that with sudo updatedb; locate MySymbols.woff, I haven't installed the font myself and I guess the name is not very common
  • The CSS is correct and works perfectly in Chrome

可能会发生什么,还有什么要尝试的?

What could be going on and what other things are there left to try?

推荐答案

您可以尝试:

历史记录>清除最近的历史记录>确保在顶部选择所有内容"以及缓存"和离线网站数据"

History > Clear Recent History > Ensure 'everything' is selected at the top, together with 'cache' and 'offline website data'

这篇关于清除Firefox字体缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆