如何在 Firefox 中阻止或替换某种字体?
我在 Windows XP PC 上安装了 Helvetica,这对于设计来说非常有用,但 Helvetica 在 PC 上的浏览器中显示时看起来很糟糕。
例如,我访问一个具有以下样式的网站:
font-family: Helvetica, Arial, sans-serif;
选择 Helvetica
,因为它安装在我的系统上。
我可以强制 Firefox 假装 Helvetica 未安装在我的系统上,并使用 Arial 渲染这些页面吗?
I have Helvetica installed on my Windows XP PC, which is great for designing, but Helvetica looks horrendous when displayed in a browser on PC.
For example, I visit a website with this style:
font-family: Helvetica, Arial, sans-serif;
Helvetica
is selected, as it is installed on my system.
Can I force Firefox to pretend Helvetica isn't installed on my system, and render these pages using Arial?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下说明不需要任何插件或附加组件,这是一个额外的好处。
@font-face { font-family: 'Helvetica'; src: local('Arial'); }
只是关于第四步的注释。 您可能需要替换多种字体,因此您应该复制并粘贴该行,但替换每种字体。 例如,我需要这个:
@font-face { font-family: 'helvetica neue'; src: local('Arial'); }
。The following instructions do not require any plugins or addons, which is a bonus.
@font-face { font-family: 'Helvetica'; src: local('Arial'); }
Just a note about step four. You may need to replace several fonts, so you should copy and paste that line but replacing each font. For example, I need this:
@font-face { font-family: 'helvetica neue'; src: local('Arial'); }
.有一天,我发现一个使用 Comic Sans 的网站,我决定用 Verdana 替换它。 我做了一些谷歌搜索,发现了这个 Greasemonkey 脚本,它可以从您访问的任何网站中删除 Comic Sans。 我重写了该脚本以用 Arial 替换 Helvetica
The other day I came across a site that used Comic Sans, and I decided I wanted to replace it with Verdana. I did some googling and found this Greasemonkey script which removes Comic Sans from any website you visit. I rewrote that script to replace Helvetica with Arial
我认为 User CSS/User Styles 可以帮助您强制浏览器覆盖页面样式。
教程到 帮助
I think User CSS/User Styles can help in that you can force the browser to override the pages style.
Some tutorials to help