views:

328

answers:

2

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?

+1  A: 

I don't think css has an option for anti-aliasing. Try cufon instead: http://wiki.github.com/sorccu/cufon/about

It's pretty easy to use and it will render your pixel fonts very well. You might also be interested in Shaun Inman's Pxfon: http://shauninman.com/archive/2009/04/17/pxr%5Fcufon%5Fpxfon

Goose Bumper
+1  A: 

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.

keithjgrant
Thanks, pretty much what I figured.
Samuel