【问题标题】:Font rendering issue Roboto "g" Internet Explorer / Firefox on Windows字体渲染问题 Roboto "g" Windows 上的 Internet Explorer / Firefox
【发布时间】:2015-11-17 19:08:04
【问题描述】:

我在 IE9 上为字母 g 渲染 Roboto 字体时遇到问题:

如您所见,g 字母被裁剪到右侧。

我尝试更改letter-spacingfont-sizefont-width,但没有任何帮助。

字体为Roboto Italic,在Roboto normal,显示效果不错:

你知道这背后的解释是什么吗?

注意:

  • 在 OSX 上的 Google Chrome(最新版本)和 OSX 上的 Firefox 31 上 呈现良好。
  • 在 Windows 上的 Firefox 42 上呈现相同。

【问题讨论】:

  • 它在其他浏览器中是否有效?
  • 是的,我会编辑我的问题。

标签: html css internet-explorer fonts


【解决方案1】:

letter-spacing 应该适用于您的情况。

正如您在thisJSFiddle (https://jsfiddle.net/e0dgsd7u/) 中看到的那样,它是高效的。

还有一个惊人的消息:IE9 应该支持它! :) http://caniuse.com/#search=letter-spacing

编辑

如果仍然无法正常工作,我只能建议您仅在 IE 上更改字体。

例如:

<!--[if IE]>
<style type="text/css">
  @font-face...
</style>
<![endif]-->

希望你能避免这种情况。

【讨论】:

  • 正如问题中所说,我尝试更改字母间距但渲染是相同的。
  • 是的,但是其他有或没有字母间距的浏览器看起来不错吗?
  • 在其他浏览器中无论有无letter-spacing看起来都不错。
猜你喜欢
  • 2011-10-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-11-17
  • 1970-01-01
  • 1970-01-01
  • 2013-08-15
  • 2012-12-27
相关资源
最近更新 更多