【问题标题】:font not consistance across differnet Operation system/different machines不同操作系统/不同机器上的字体不一致
【发布时间】:2012-02-20 19:57:31
【问题描述】:

我正在使用“流行”字体。我遇到了一个奇怪的问题。

当我在笔记本电脑中查看字体时,字体清晰地形成而没有任何失真(在所有浏览器上)但是当在其他系统上看到相同的情况时(不是所有系统都这样做),它开始出现失真(再次,在所有浏览器上)浏览器)。我不确定什么会导致字体在某些系统中失真。请指教。这是我在代码中使用的 CSS..

@font-face {
font-family: 'Populaire';
src: url('font/populaire.eot');
src: url('font/populaire.eot?#iefix') format('embedded-opentype'),
     url('font/populaire.woff') format('woff'),
     url('font/populaire.ttf') format('truetype'),
     url('font/![enter image description here][2]populaire.svg#populaire') format('svg');
}

h1 {
font-family: 'Populaire','Helvetica neue',Helvetica,Arial,sans-serif;
font-size: 2em;
font-weight:lighter;
color: #ffffff;
background-color: #8D407C;
width:250px;
margin: 0;
padding: 0;
}

【问题讨论】:

标签: html css cross-browser font-face


【解决方案1】:

第二个屏幕截图中的类型在显示时没有抗锯齿。这可能是因为第二台计算机没有启用 Cleartype。

http://www.microsoft.com/typography/cleartype/tuner/step1.aspx

在 Windows Vista、Windows 7 和 OSX Cleartype(或等效的抗锯齿引擎)中默认启用。

如果没有抗锯齿,任何没有特别提示在屏幕上显示的字体都会出现“锯齿状”,因为它的曲线不能很好地适应屏幕的像素网格。

【讨论】:

  • 你是“天才”,谢谢你的回答!!所以只想明确一点,我的代码(设置)没有问题,我不需要更改代码中的任何内容。这必须由用户在他们的机器中完成(cleartype 更改)?再次感谢您的回答,它确实有效!
  • 没错——这是用户的责任。我不相信 Web 开发人员有任何方法可以打开或关闭 Cleartype。
猜你喜欢
  • 2012-09-21
  • 2015-08-09
  • 2017-07-29
  • 2021-06-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-10-22
  • 1970-01-01
相关资源
最近更新 更多