简体   繁体   English

同一浏览器(Firefox),相同字体,不同计算机上的不同呈现

[英]Same browser (Firefox), same font, different rendering on different computers

I've got a problem. 我有一个问题。 I am using titillium weblight font (with standard font-face appliance - including text-rendering: optimizeLegibility, font-weight, line-height etc.). 我正在使用titillium weblight字体(使用标准的字体工具-包括文本渲染:optimizeLegibility,字体粗细,行高等)。 The problem is that the font renders differently on Firefox (same version 31.0) on two different computers, with similar hardware, same resolution, same OS (Windows 7). 问题在于字体在两台不同的计算机(具有相似的硬件,相同的分辨率,相同的操作系统(Windows 7))上的Firefox(31.0版)上呈现的字体不同。

On the first computer it renders normally: 在第一台计算机上,它正常渲染:

While on the second one it lacks antialiasing as far as I can tell: 就第二篇而言,据我所知,它缺乏抗锯齿功能:

Maybe the difference is not that big that anyone should concern, but it is important for me that every detail of this project will be just fine. 也许差异并不大,任何人都应该关注,但是对我来说重要的是,该项目的每个细节都很好。

Anyone has any idea? 有人知道吗? Thanks in advance. 提前致谢。

These three properties together have always worked for me across different browsers. 这三个属性一起在不同的浏览器上一直对我有用。

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

The issue is called "antialiasing" or "subpixel rendering" and it has to do with how the browser/computer treats the edges of your text. 这个问题称为“抗锯齿”或“亚像素渲染”,这与浏览器/计算机如何处理文本的边缘有关。 If you're curious you can read more about it here on Wikipedia . 如果您好奇,可以在Wikipedia上阅读有关内容的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM