There is no way to do this without scripting - at least not in non-IE  
browsers.

While you don't have access to the user's fonts, on page load you  
could insert an element with a single character inside and measure the  
height. You could determine the height for your preferred font and  
compare the values. If the values don't match you could assume they  
don't have your font and then adjust the size accordingly - all with  
scripting, of course.

This technique, however, is not fail-safe as users may have changed  
the font size manually which will return you different values.

Overall though, I would recommend against using that font in favor of  
a more common one (see http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html) 
 If that is not possible, you might try Verdana as your fall back  
instead of Arial - it also appears slightly larger at 16px.

Good luck.

Zack Frazier
--
Senior Developer
VSA Partners, Inc.
1347 South State Street
Chicago, Illinois 60605
http://www.vsapartners.com


> Does CSS provide any way to do something like this:
>
> if (TW Cen MT is available) then 16px else 13px
> or even
> if (TW Cen MT) then 16px elseif (Arial) then 13px elseif (Helvetica)  
> then
> 13px elseif (sans-serif) then (13px) endif
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to