css - Google Webfont 在 Safari 中比在 Chrome、IE 和 Firefox 中显示得更粗、更断断续续

标签 css google-chrome fonts safari

我的问题似乎与这里的某些人相反。

这是交易。 http://www.mb-events.de/wordpress/在 IE、Chrome 和 Firefox 上呈现出色。但是在 Safari 上,价格和推荐等信息显示不同,我就是找不到原因。我为此使用的 Google Webfont 是“Cabin”。我会发布并排比较,但由于是新手所以不能。

我尝试设置不同的后备字体并搜索 Safari 是否一般不喜欢 Google Webfonts。

我的 CSS 是

.entry, .entry p {
font: 300 15px/1.5em 'Cabin', arial, sans-serif;
}

最佳答案

您是否尝试移动您调用的网络字体的堆叠顺序。我一直发现将 svg 类型添加到堆栈顶部总是有助于保持可读性。

举个例子:

@font-face {
    font-family: 'encode_widelight';
    src: url('encode-sans/encodesanswide-300-light.eot');
    src: url('encode-sans/encodesanswide-300-light.eot?#iefix') format('embedded-opentype'),
         url('encode-sans/encodesanswide-300-light.svg#encode_sans_widelight') format('svg'), /* Place your svg font here */
         url('encode-sans/encodesanswide-300-light.woff') format('woff'),
         url('encode-sans/encodesanswide-300-light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;

}

您还可以尝试为您的 css 添加字体平滑:

html {
    -webkit-font-smoothing: antialiased;
}

关于css - Google Webfont 在 Safari 中比在 Chrome、IE 和 Firefox 中显示得更粗、更断断续续,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28171617/

相关文章:

javascript - 当其中一个面板以 Accordion 形式打开时关闭其他面板

javascript - 获取高度以在绝对模式下定位一个 div

javascript - 删除 div 之间的垂直空白,尤其是在遇到断点之后

css - 如何删除 Chrome - CSS 中文本上的蓝色下划线?

oracle - 显示编码文本的命令行

html - 如何对类使用 nth-of-type——而不是元素

html - 保存后 CSS 样式未应用于网站(在 XAMPP 本地主机上运行)

google-chrome - CSS 点状边框在 Chrome 中呈现为虚线

css - IE8 嵌入字体在刷新时消失

pdf - GhostScript **** 警告 : considering '0000000000 XXXXX n' as a free entry Error because of CID Font