跨浏览器字体
我讨厌 Lucida Grande 无法在 Internet Explorer 上使用。这是为什么? Calibri是可以在IE上使用的字体吗?
I hate that Lucida Grande is not usable on Internet Explorer. Why is that? And is Calibri a font that can be used on IE?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用的是 Macintosh,默认情况下会安装很多字体,包括 Lucida Grande。 Windows 不安装与 Mac OS X 相同的字体范围,因此像 Lucida Grande 这样的字体可能会丢失。
Calibri 应安装在具有 Office >=2007 或 2003(具有 2007 兼容性)的 Windows 计算机上,同样适用于具有 Office >=2008 或兼容性工具的 Mac。但是,您可能不应该依赖它。
网络排版的维基百科页面提供了一些关于大多数计算机上应该使用哪些字体的信息,以及如果字体不存在如何优雅地降级。
If you're on a Macintosh, a lot of fonts are installed by default, including Lucida Grande. Windows doesn't install the same range as fonts as Mac OS X, so fonts like Lucida Grande are likely to be missing.
Calibri should be installed on Windows computers with Office >=2007 or 2003 with 2007 compatibility, and likewise for Mac with Office >=2008 or compatibility tools. You probably shouldn't rely on it however.
The Wikipedia page for web typography has some information on what fonts should be available to use on most computers, and how to degrade gracefully if a font isn't present.
不同的浏览器只是支持不同的字体渲染。原因可能有很多,但根本不值得深思,事实就是如此。无论如何,最好的防御方法是在 css 中定义一个字体系列,以便在您的第一个所需字体不可用时有一个后备计划。除此之外,如果您愿意,您还可以按照这里这个小技巧强制浏览器使用自定义字体,但首先要确保您有权使用该字体。
different browsers simply support different font renderings. there can be a multitude of reasons why but its not even worth pondering about, the fact is that this is just the case. Anyway the best defense against this is to define a font-family in css so that you have a fallback plan in case your first desired font is not available. aside from that you can also follow this little trick here if you want to force browsers to use a custom font, but just make sure you have rights to use the font before anything.