PC 上的 @font-face 别名问题
刚开始使用这种技术,在 PC 端出现了奇怪的结果。事实上,我在 PC 上预览此网站的每个浏览器都会使字体看起来完全马气。示例:
在 Mac 上:
http://dropbox.smallparade.com/ howto-mac.png
在 PC 上:
http:// /dropbox.smallparade.com/howto-pc.png
有人有解决此问题的经验吗?有解决办法吗?这与字体的创建方式有什么关系吗?感谢我能得到的任何帮助。我在 fontsquirrel.com 上使用了字体生成器。
Just started using this technique and am having strange results on the PC side. Virtually every browser I preview this site in on a PC makes the font look totally horsey. Example:
On the Mac:
http://dropbox.smallparade.com/howto-mac.png
On a PC:
http://dropbox.smallparade.com/howto-pc.png
Anyone have experience with this issue? Is there a resolution? Does it have anything to do with how the fonts were created? Appreciate any help I can get. I used the font-face generator over at fontsquirrel.com.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是一个提示问题。
当您生成字体套件(如 FontSquirrel 中)时,您需要在 Expert 选项上指定 Hinting。
选择专家,然后在渲染下选择:
应用提示 - 改进 Win 渲染。
That's a Hinting problem.
When you generate your font-face kit (like in FontSquirrel), you need to specify Hinting on the Expert options.
Choose Expert, and under Rendering, select:
Apply Hinting - Improve Win rendering.
也许你可以以 px 为单位指定字体大小,例如
这可能对你有帮助,因为我也遇到过同样的问题,并且我只像这样解决了它
probably you can specify font-size in px for example
this might help you because i have faced same problem and i solved it like this only
我也遇到了同样的问题,就像 Rinkalkumar 一样,我建议指定字体大小。
但我还发现某些尺寸的某些字体看起来很丑。
所以你可能想尝试调整大小几个 px + - 只是为了检查这是否是问题所在。
字体支持尚不完美,因此如果这被证明是一个问题,您
可能想尝试http://cufon.shoqolate.com/generate/ - 它涉及javascript
但事实证明,当您希望字体在浏览器/平台上一致呈现时,它非常有用。
I had this same issue, and just like Rinkalkumar I'd suggest specifying font-size.
But I've also found out that some fonts in some sizes simply render ugly.
So you may wanna try adjusting size few px +- just to check is this the issue.
Font face support isn't perfect yet, so if this proves to be an issue, you
may wanna try http://cufon.shoqolate.com/generate/ - it involves javascript
but has proven to be great when you want fonts render consistently across browsers/platforms.
ttfautohint 将为您重建字体的提示。
ttfautohint will rebuild the font's hinting for you.