PC 上的 @font-face 别名问题

发布于 2024-09-30 13:35:17 字数 562 浏览 8 评论 0原文

刚开始使用这种技术,在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

难以启齿的温柔 2024-10-07 13:35:17

这是一个提示问题

当您生成字体套件(如 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.

汐鸠 2024-10-07 13:35:17

也许你可以以 px 为单位指定字体大小,例如

font-size:11px/11px;

这可能对你有帮助,因为我也遇到过同样的问题,并且我只像这样解决了它

probably you can specify font-size in px for example

font-size:11px/11px;

this might help you because i have faced same problem and i solved it like this only

音栖息无 2024-10-07 13:35:17

我也遇到了同样的问题,就像 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.

兔姬 2024-10-07 13:35:17

ttfautohint 将为您重建字体的提示。

ttfautohint will rebuild the font's hinting for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文