【问题标题】:Windows, @font-face and CyrillicWindows、@font-face 和西里尔文
【发布时间】:2012-11-02 21:28:43
【问题描述】:

我遇到了字体和西里尔字符的问题。在 OS X 上的任何浏览器中显示时,字体会正确呈现,但在 Windows 7 机器(chrome 等)上查看时,字体无法呈现。

字体已经通过Font Squirrel,文件自带的demo也失败了。

字体css:

@font-face {
    font-family: 'open_sansregular';
    src: url('opensans-regular-webfont.eot');
    src: url('opensans-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('opensans-regular-webfont.woff') format('woff'),
         url('opensans-regular-webfont.ttf') format('truetype'),
         url('opensans-regular-webfont.svg#open_sansregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

这是我的问题的一个非常基本的例子。 http://joshmahony.com/font_test/opensans-regular-demo.html

编辑:我更新了我的链接,使字体回退到新罗马时代,并添加了一些英文字符以表明西里尔文正在回退。

【问题讨论】:

  • 它为我渲染,顺便说一句,操作系统与此无关,它只是浏览器版本
  • 它也是为我翻译的,上面写着 Dmitry Khlebnikov 领导了 2012 年“组织发展和人类潜力”实践
  • 感谢您的快速回复。我意识到我的 Windows 版本的 Chrome 只是默认为其标准字体。所以你们正在运行 Windows,它以 Open Sans Regular 字体呈现?
  • 我还注意到,在 OS X 上,任何西里尔字符都恢复为默认值,而英文字符和数字正在正确呈现,这就是您所看到的吗?

标签: html css windows font-face webfonts


【解决方案1】:

您可能生成了不包含西里尔字符的 Open Sans 版本。使用 Google Web Fonts 页面,您需要选中用户界面中的相关复选框。对于俄语,我想检查“Cyrillic”就足够了,不需要“Cyrillic Extended”。

选择是在“几乎完成”页面的“2.选择你想要的字符集”。

【讨论】:

  • 我现在要给出这个,我已经更新了我的链接,所以字体回退到新罗马时代,并添加了一些英文字符来显示差异。
  • 谢谢尤卡!我现在使用的是 Google Font API 版本,而不是自己托管它,它似乎工作得很好。解决了!
猜你喜欢
  • 1970-01-01
  • 2012-12-23
  • 2012-12-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2010-12-06
  • 2011-05-02
  • 2011-03-26
相关资源
最近更新 更多