Forum Moderators: open

Message Too Old, No Replies

How to smooth the edges of fonts in HTML?

How can I make the font edges smooth without relying on the user...

         

jmh1970

11:21 pm on Nov 27, 2003 (gmt 0)

10+ Year Member



Hi there all,

In Windows there is a display setting to "smooth edges of screen fonts", which makes standard HTML text headings look great. My issue is that when peeps don't have this function turned on the larger point headings look jaggy.

Is there any way that anyone knows of to force this smoothing without making the headings graphics?

Cheers,
Ben.

tedster

1:05 am on Nov 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not as far as I know -- it's all up to the user's computer. Nothing you can do on the HTML page will change the end user's setup.

Font smoothing is not as simple as it might seem. Any program that generates this effect -- which essentially an optical illuson -- must know both the exact color of the text and the exact color of the background. Only then can the various transitional colors be calculated to be placed in various posiitons around the curves in the letter forms.

As you can see from that description, the entire effect is created locally.

jmh1970

1:18 am on Nov 28, 2003 (gmt 0)

10+ Year Member



Bugger. Oh well, thanks Ted :)

IanKelley

7:36 am on Nov 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



For what it's worth... Both IE 6 and Windows XP anti-alias fonts automatically. The user would have to go out of their way to have it turned off for it not to happen.

ricfink

6:35 am on Nov 29, 2003 (gmt 0)

10+ Year Member



Are you referring to the Cleartype option that's available in Windows for flat panel displays?

Or just the standard "font smoothing" that's been around for years?

jmh1970

9:00 pm on Nov 30, 2003 (gmt 0)

10+ Year Member



...basically any way to make the fonts look nicer, not jagged, without using images...

Cheers,
Ben

Farix

9:51 pm on Nov 30, 2003 (gmt 0)

10+ Year Member



AFAIK, this is something that has to be done on the users end. There is nothing you can do to automatically change the setting -- and frankly, this should be something you should be changing even if you can. The only alternatives are a link, like "Why does the text look jagged?", to a short tutorial about how to turn on "Smooth edges for screen fonts" or ignore it as a problem.