css - Windows(IE 和 Firefox)上的像素化​​字体(font-face)

标签 css windows fonts font-face

我们目前正在为大量用户构建一个网站,大多数测试用户都在使用 Windows。他们注意到字体呈现非常扭曲,请参见屏幕截图:

Screenshot - Normal Text and Bold Text

我尝试了一些我能找到的“修复”,比如添加微妙的文本阴影,使用 zoom: 1 和/或设置 translateZ(0)。我也尝试使用过滤器和字体平滑属性,但字体并没有变好。

我使用的是字体 (Texta Narrow)。 Windows 上的 Firefox 看起来比 IE9 还要糟糕。

有没有办法至少使文本平滑一点,或者我唯一的选择是使用其他字体吗?

最佳答案

如果您在网站中使用字体,那么您应该像这样更改字体声明/格式。

font-family: 'fontName';
src: url('fontName.eot');
src: url('fontName.svg#fontNameID') format('svg'),
     url('fontName.eot?#iefix') format('embedded-opentype'),
     url('fontName.woff') format('woff'),
     url('fontName.ttf') format('truetype');
font-weight: normal;
font-style: normal;

关于css - Windows(IE 和 Firefox)上的像素化​​字体(font-face),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33032622/

相关文章:

javascript - jQuery .click.each 函数

pdf - 如何通过 Jasper Reports(不嵌入字体)在 PDF 中显示日语字体?

html - 使用 Bootstrap 更改导航栏的字体颜色

wpf - 如何使运行的WPF应用程序窗口透明?

php - 使用 php 打开 OTF 字体 - 包括希腊字符

css - 在 MAC 和 PC 上的同一浏览器中,网站看起来不同

html - CSS 下拉菜单在 iPad 上无法正常运行

jquery - 将一行缩略图居中放置在另一行下方

windows - CPU密集型线程智慧

c++ - _GetExceptDLLinfo 是什么?