css - google webfonts 在 chrome 上看起来很糟糕

标签 css google-chrome fonts google-webfonts

我的网站严重依赖 Google Webfonts,而(不幸的是)google chrome 显示它们很糟糕,我已经将 font-smooth 设置为 always,但它似乎没有帮助。 例子:

Google Chrome - Londrina Outline

Firefox - Londrina Outline

Google Chrome - Walter Turncoat

Firefox - Walter Turncoat

有什么方法可以使它们平滑/使它们看起来更好??

谢谢,

最佳答案

字体渲染问题在 GChrome 中很常见,请尝试更改您的@font-face 源的顺序...Chrome 使用@font-face 源中的 .svg 文件,由于某些原因它不能容忍 .svg在列表中最后调用

@font-face {
font-family: 'my-dirty-font';
src: url('../fonts/my-dirty-font.eot');
src: url('../fonts/my-dirty-font.eot?#iefix') format('eot'),
url('../fonts/my-dirty-font.woff') format('woff'),
url('../fonts/my-dirty-font.ttf') format('truetype'),
url('../fonts/my-dirty-font.svg') format('svg');
font-weight: normal;
font-style: normal;
}

如果@font-face 的顺序看起来很相似,则尝试更改为

@font-face {
    font-family: 'my-dirty-font';
    src: url('../fonts/my-dirty-font.eot');
    src: url('../fonts/my-dirty-font.eot?#iefix') format('eot'),
    url('../fonts/my-dirty-font.svg') format('svg');
    url('../fonts/my-dirty-font.woff') format('woff'),
    url('../fonts/my-dirty-font.ttf') format('truetype'),
    font-weight: normal;
    font-style: normal;
    }

关于css - google webfonts 在 chrome 上看起来很糟糕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10349256/

相关文章:

html - 根据 W3C,使用 Google 字体 : however, 代码不是有效的 HTML5?

css - 为什么转换顺序很重要?旋转/缩放不会给出与缩放/旋转相同的结果

html - 如何将对话气泡与图像对齐

css - 在发布新版本的 Chrome 和 Firefox 后,在输入字段中写入光标可以让这些光标位于顶部

javascript - 获取 chrome 中所有打开的标签页的 url,并将其发送到网络服务

.net - Google Chrome浏览器在哪里存储我的主页?

css - 元素的 z-index 值不能克服 iframe 内容的一个

javascript - ionic 1 : scrollable tabs (multiple tabs) and handle overflow

php mPDF,无法设置字体系列和字体大小

css - Symfony Webpack - 使用子目录中的自定义字体