如何防止IE和FF中位图字体抗锯齿
我有一个基本的图标位图字体。
它在 Chrome 中很清晰,但 IE 和 FF 中的字体平滑使图标看起来模糊。
关于如何解决该问题有什么建议吗?
屏幕截图: https://i.sstatic.net/MxiOh.jpg
字体是使用 http://fontstruct.com
@font-face 是由 http://www.fontsquirrel.com/fontface/generator 使用最佳设置。还尝试专家删除字体提示,结果相同。
谢谢。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它与不同浏览器和操作系统中的文本渲染有关。我相信 webkit 浏览器(Safari 和 Chrome)的默认设置是
subpixel-antialiased
。您可以尝试使用 font-smooth css 属性,尽管我不确定它的支持范围有多大。 Typekit 有很多关于文本渲染的文章可能想看一下,但如果您正在寻找跨多个浏览器的极其一致的外观,那么最好的选择是图像精灵。It has to do with text rendering in different browsers and operating systems. I believe the default for webkit browsers (Safari and Chrome) is
subpixel-antialiased
. You may try playing around with the font-smooth css property, though I'm not sure how widely it is supported. Typekit has a bunch of articles on text rendering you might like to take a look at, but if you are looking for an extremely consistent look across multiple browsers, your best option is an image sprite.