如何确定浏览器实际使用哪种字体来呈现某些文本? [英] How can I determine what font a browser is actually using to render some text?

查看:13
本文介绍了如何确定浏览器实际使用哪种字体来呈现某些文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 CSS 为整个页面指定了font-family: Helvetica, Arial, sans-serif;".看起来有些部分正在使用 Verdana.我希望能够验证这一点.

My CSS specifies "font-family: Helvetica, Arial, sans-serif;" for the whole page. It looks like Verdana is being used instead on some parts. I would like to be able to verify this.

我试过从浏览器复制粘贴到 Word 中,但它没有保留字体.

I've tried copying and pasting from my browser into Word, but it's not preserving the font.

有什么方法可以确定一段文本实际使用的是哪种字体?

Is there some way to determine which font is actually being used for a section of text?

Firebug 会给我上面[1] 的字体列表,但我看不到一种方法来确定正在使用哪种字体.

Firebug will give me the list of fonts as above[1], but I don't see a way to determine which one of the fonts is being used.

  1. 事实证明使用了错误的列表,这解决了我原来的 Verdana 问题.但我仍然很好奇是否有办法识别实际渲染字体.

推荐答案

根据 Wilfred Hughes 的回答,Firefox 现在支持这本机.这篇文章有更多细节.

Per Wilfred Hughes' answer, Firefox now supports this natively. This article has more details.

这个答案原来引用了Font Finder"插件,但只是因为它是 4 年前的.旧答案像这样徘徊并且社区无法更新它们的事实是 Stack Overflow 为数不多的失败之一.

This answer original referenced the "Font Finder" plugin, but only because it was from 4 years ago. The fact that old answers linger like this and the community cannot update them is one of the few remaining failures of Stack Overflow.

这篇关于如何确定浏览器实际使用哪种字体来呈现某些文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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