Old 04-05-2008, 09:01   #1 (permalink)
siddes
Registered User
 
Join Date: May 2008
Posts: 6
Anti aliasing

Couldn't find anything on the topic, so here goes.

I'm making this homepage and I use an H1 for the heading.

The problem is jagged edges, even on web safe fonts like Verdana and Arial.

I've seen some graphic designer sites that have have no jaggeds whatsoever, but I can't figure how to achieve that using CSS.

Do i really have to use Photoshop, because I don't want to? My homepage must be plain, simple and quick.
  Reply With Quote
Old 04-05-2008, 10:23   #2 (permalink)
djhektik
tech house dj
 
djhektik's Avatar
 
Join Date: May 2008
Location: riyadh, saudi arabia
Posts: 30
afaik it depends on three factors: browser support, user os settings, and the unit used for font size.

i'm not 100% sure but if you are using px as a font size unit, try changing to ems or % (you should not be using px anyway)

+edit+

i'm pretty sure there's no css attribute to define that; if that is what you were looking for
  Reply With Quote
Old 04-05-2008, 13:43   #3 (permalink)
Ftju
#T1M3S!
 
Ftju's Avatar
 
Join Date: May 2008
Location: in an visionary world
Posts: 11
There is a great Flash project for this. It replaces the Headline tags with flash files that contain an font in any form or shape could be an font that the viewer doent have, and present it in Anti-ailising ones. If you dont have flash or javascript on than you see the normal Headline tags.

project called Sifr. site: mikeindustries.com/blog/sifr/
  Reply With Quote
Old 04-05-2008, 14:48   #4 (permalink)
siddes
Registered User
 
Join Date: May 2008
Posts: 6
But won't the flash make it a little heavy?

On my current homepage, all my images are in bytes. The point is, I want to make a highly customizable page with themes and other such effects, only through the use of CSS. Adding too many images spoils that.

Check my current page at sid-deswal(dot)110mb(dot)com
  Reply With Quote
Old 04-05-2008, 14:51   #5 (permalink)
siddes
Registered User
 
Join Date: May 2008
Posts: 6
@ djhektik

I'll try what you say. Right now, all my sizes are in px, so maybe that's where the problem lies.

Thanks
  Reply With Quote
Old 04-05-2008, 15:21   #6 (permalink)
djhektik
tech house dj
 
djhektik's Avatar
 
Join Date: May 2008
Location: riyadh, saudi arabia
Posts: 30
you see, it depends on the os/browser also: this was captured on my mbp: macos 10.5, flock 1.1, default settings



and this one is rendered from win 2k3 server, ie7, default settings

  Reply With Quote
Old 04-05-2008, 16:10   #7 (permalink)
Ftju
#T1M3S!
 
Ftju's Avatar
 
Join Date: May 2008
Location: in an visionary world
Posts: 11
Quote:
Originally Posted by siddes
But won't the flash make it a little heavy?

On my current homepage, all my images are in bytes. The point is, I want to make a highly customizable page with themes and other such effects, only through the use of CSS. Adding too many images spoils that.

Check my current page at sid-deswal(dot)110mb(dot)com

well all the headlines are made Trough 1 flash file and not different files for every headline. And yes it makes it more heavy, but it solves the problem.
  Reply With Quote
Old 04-05-2008, 19:02   #8 (permalink)
blacksmoke
Banned
 
blacksmoke's Avatar
 
Join Date: May 2008
Location: Chakwal - Pakistan
Posts: 48
Send a message via Yahoo to blacksmoke Send a message via Skype™ to blacksmoke
better~
  Reply With Quote
Old 04-05-2008, 19:05   #9 (permalink)
siddes
Registered User
 
Join Date: May 2008
Posts: 6
@djhektik

90% of the market is IE, and thats what the majority of my audience will be using, even though FF is much better.

@Fjtu

I guess if IE doesn't show it nice, I'll have to start using flash and then somehow create a lot of money to spend on bandwidth.
  Reply With Quote
Old 04-05-2008, 19:06   #10 (permalink)
siddes
Registered User
 
Join Date: May 2008
Posts: 6
better???
  Reply With Quote
Old 04-05-2008, 20:07   #11 (permalink)
pgo
Moderator
 
pgo's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
Quote:
Originally Posted by siddes
@djhektik

90% of the market is IE, and thats what the majority of my audience will be using, even though FF is much better.

@Fjtu

I guess if IE doesn't show it nice, I'll have to start using flash and then somehow create a lot of money to spend on bandwidth.
The font rendering really has nothing to do with the browser and everything to do with the OS. FF on his Win Server 2k3 virtual machine will look the same.

It's a user setting. No sense in worrying about it. Use sIFR if you want, but very sparingly. It's not too heavy in terms of bandwidth, but it is in terms of client-side processing.

Why can't you just use plain old image replacement? A PNG or a GIF is easier to process (and more widely supported) than sIFR!
__________________
  Reply With Quote
Old 05-05-2008, 05:12   #12 (permalink)
djhektik
tech house dj
 
djhektik's Avatar
 
Join Date: May 2008
Location: riyadh, saudi arabia
Posts: 30
it is not locked to the user setting. the following screen is one of my sites on my w2k3 server, ie7, without changing any settings in the browser or os:



you can see the text is antialiased, though its not as smooth as the previous example from macos.

the following is the css code that styles the text on that site:

Code:
body { font: 13px "Lucida Grande", Verdana, Arial, sans-serif; line-height: 1.22em; } select, input, textarea { font: 99% arial,helvetica,clean,sans-serif; } pre, code { font: 115% monospace; }

so i guess it throws the unit idea out of the window. experiment and see what happens.

personally though, i would not use flash or images for text, especially when the only reason is anti aliasing.
  Reply With Quote
Old 05-05-2008, 12:03   #13 (permalink)
siddes
Registered User
 
Join Date: May 2008
Posts: 6
The page looks different on different browsers in the same OS.

I've checked the page on Safari, IE, FF and Opera on WInXP Pro SP2

The best looks are obviously on Safari.
  Reply With Quote
Old 06-05-2008, 08:26   #14 (permalink)
abbasinho
Branding Bitch
 
Join Date: May 2007
Posts: 65
are you viewing the page on a mac or pc?? if it's a mac fonts will look smoother because the screen resolution is higher on a mac than a pc.

i think mac's show the screen at 96dpi - whereas pc's show at 72dpi.
  Reply With Quote
Old 07-05-2008, 08:27   #15 (permalink)
djhektik
tech house dj
 
djhektik's Avatar
 
Join Date: May 2008
Location: riyadh, saudi arabia
Posts: 30
Quote:
Originally Posted by abbasinho
are you viewing the page on a mac or pc?? if it's a mac fonts will look smoother because the screen resolution is higher on a mac than a pc.

i think mac's show the screen at 96dpi - whereas pc's show at 72dpi.

the os will not affect this. screen resolution, as in pixels per inch is defined by the monitor specs and user setting. my macbook pro 15" screen runs at 1440x900, so assuming the screen measures 13.5 inches wide, that calculates to about 100 dpi.

if i restart the computer in windows, the dpi value will be the same - the screen will still run at 1440x900 and the screen itself will still measure 13.5 or so inches wide.

different screens will have different "real" resolutions, which is why a high resolution on a small screen makes everything on screen look small.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8