繁体   English   中英

相同的字体在运行相同操作系统版本和浏览器版本的两台 Mac 上呈现不同

[英]Same font renders differently across two Mac both running the same OS version and browser version

我正在处理的网站有一个自定义脚本链接字体,确切地说是Santa fe 在我的 Mac 上,它在 Firefox 5 中呈现如下:

它应该如何呈现 http://z17.me/oa2c+

这就是我希望它呈现的方式。

在我客户的 Mac 和其他人的 Mac 上,它呈现(不正确)如下:

渲染不当 http://idzr.org/5ume

我之前在 Safari 中遇到过同样的问题,但是-webkit-font-smoothing: antialiased; 解决它; 但是,似乎没有与 Firefox 等效的产品。

我也有text-rendering: optimizeLegibility; 打开并使用Font Squirrel生成 web 字体 package 。

有任何想法吗?

编辑:字体应用了这个 CSS :

font-family: SantaFeLetPlainRegular;
font-weight: normal;
font-style: normal;
font-size: 21px;
text-transform: lowercase;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
/* @doubtful_existance: I don’t think these even exist? Can’t hurt much, I guess. */
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
/* end @doubtful_existance */
font-smoothing: antialiased;
text-shadow: 0 0 1px rgba(256, 256, 256, 0.01); /* A trick I’ve heard of to fix issues like this. */
opacity: 0.99; /* Another trick I’ve heard of to fix issues like this. */

尝试应用与背景颜色相似的 0px 文本阴影:

text-shadow: #fff 0 0 0;

另外,您是否尝试应用font-weight:normal; 直接到使用脚本字体的任何元素? 有时 Firefox 会在您不注意的情况下级联bold

暂无
暂无

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

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