18

I have some text in Photoshop & it's set to "crisp". When I put it on my site it doesn't quite look the same.

Does anything exist in CSS yet that I can use to make it crisp? Or not?

Or do you have any suggestions to achieve a similar effect?

Herman Schaaf
  • 46,821
  • 21
  • 100
  • 139
Brett
  • 19,449
  • 54
  • 157
  • 290

5 Answers5

15

Not only is it not possible, but different browsers on the market enforce different antialiasing settings, meaning that you can't get consistent results, even if they are not what you want.

For a good article on how the various browsers deal with font rendering, I'd suggest reading this: http://blog.typekit.com/2010/10/21/type-rendering-web-browsers/

Spudley
  • 166,037
  • 39
  • 233
  • 307
7

this is what I found on a big company's web site:

body, table, form {
font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; 
background-color: transparent; 
color: #333; 
-webkit-font-smoothing: antialiased;}
Alex
  • 2,247
  • 1
  • 27
  • 37
6

What you're really asking is:

"Is it possible to control anti-aliasing from the web development perspective?"

The answer, for now, and for at least some time into the future (until OS/browser vendors start giving that kind of developmental control [don't hold your breath]) is undeniably: NO.

Community
  • 1
  • 1
rockerest
  • 10,412
  • 3
  • 37
  • 67
  • In addition to not being able to force much on (informed) end users, the CSS for controlling text rendering was not incredibly well supported last I checked (admittedly some time ago). Presumably it will be well supported some day if it isn't already, and then you'll have what you want at least for people interested in viewing things as you want them to. – reisio Apr 28 '11 at 01:52
2

Forcing anti-aliasing using css: Is this a myth?

Community
  • 1
  • 1
Jaspero
  • 2,912
  • 6
  • 26
  • 30
0

Try This code snippet

 body {
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}
Gil Perez
  • 853
  • 10
  • 13