Is it possible to disable anti-aliasing in CSS when using @font-face with pixel fonts?

Samuel picture Samuel · Nov 18, 2009 · Viewed 12.7k times · Source

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?

Answer

keithjgrant picture keithjgrant · Nov 18, 2009

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.