CSS 中的 @font-face 问题
我在渲染 @font-face CSS 和 HTML 时确实遇到了一些问题。有趣的是,字体似乎正在加载,但它们在页面上看起来很模糊,然后在 Safari 中它们比其他浏览器要暗得多。我对事情的结果真的很失望!
我选择实现的方法是从 CSS Tricks 网站 (http://css-tricks.com/snippets/css/using-font-face/) 获得的,这是一个很棒的资源。它仍然无法正常工作,并且我在使用任何其他浏览器查看任何其他网站时从未遇到过问题。
我检查了 Windows 7 中的 Cleartype 字体,它可以工作。我假设我的标题 CSS 很好,因为字体正在渲染,所以我希望这是一个语法问题或简单的问题。也许这也是我使用 HTML 5 的原因?
这是我的测试域的页面: http://www.richmindonline.com/sampleconversion2.html
我在此处发布代码时遇到问题。没有 CSS 文件,样式是内部的和内联的。
I'm really having some problems with rendering @font-face CSS and HTML. The funny thing is that the fonts seems to be loading, but they just look blurry on the page, and then in Safari they are much darker compared to the other browsers. I'm really disappointed in how things are turning out!
They method I chose to implement was obtained from the CSS Tricks website (http://css-tricks.com/snippets/css/using-font-face/) which is a great resource. It's still not working correctly, and I never have issues viewing any other websites with any of my other browsers.
I've check Cleartype fonts in my Windows 7 and it works. I'm assuming my header CSS is good because the font is rendering, so I'm hoping it's a syntax issue or something simple. Maybe it's also cause I'm using HTML 5?
Here's the page at my testdomain: http://www.richmindonline.com/sampleconversion2.html
I was having probs posting the code here. There's no CSS file, the styles are internal and inline.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你用的那个字体太细了。此外,不同的浏览器会以不同的方式呈现 HTML。一些较旧的计算机甚至不执行抗锯齿功能。顺便说一句,该链接中的文本没有启用抗锯齿功能,这实际上让我读起来感觉很奇怪。
使用@font-face时要记住的事情:
@font-face
(尤其要小心 IE)。根据经验,我总是选择一种标准字体。他们还不错。
That font you use is just too thin. Also, different browsers will render HTML differently. Some older computers don't even do anti-aliasing. By the way, the text in that link doesn't have anti-aliasing enabled and it actually made me feel weird reading it.
Things to keep in mind when using
@font-face
:@font-face
(especially beware of IE).As a rule of thumb, I always choose from one of the standard fonts. They're not too bad.