当使用@ font-face和像素字体时,是否可以禁用CSS中的消除锯齿? [英] Is it possible to disable anti-aliasing in CSS when using @font-face with pixel fonts?

查看:174
本文介绍了当使用@ font-face和像素字体时,是否可以禁用CSS中的消除锯齿?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网络上使用像素字体。我包括它使用@ font-face,但所有的浏览器都应用反锯齿的字体。我似乎找不到一个CSS规则来禁用这个,任何人都可以想到另一种方法禁用抗锯齿?

I want to use a pixel font on the web. I'm including it using @font-face however all the browsers are applying anti-aliasing to the font. I can't seem to find a CSS rule to disable this, can anyone think of another method of disabling anti-aliasing?

推荐答案

字体渲染是由操作系统和浏览器完成的,因此,迄今为止,我相信你可以做的CSS很少。在讨论中可能有一些建议的CSS规则(我已经看到提及font-smooth或类似的东西),但在CSS3中没有,就我所知,在CSS2中绝对没有。

Font rendering is done by the operating system and browser, so, as of yet, I believe there is little that you can do with CSS. There may be some proposed CSS rules in discussion (I've seen mention "font-smooth" or something like that), but nothing in CSS3, as far as I know, and definitely nothing in CSS2.

这篇关于当使用@ font-face和像素字体时,是否可以禁用CSS中的消除锯齿?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆