-----Original Message-----
From: Tony Crockford <[EMAIL PROTECTED]>
Date: Thu, 29 Nov 2007 10:53:23 +0000
Subject: Re: [WSG] Disabling Fonts in Font Stacks

On 29 Nov 2007, at 10:46, James Leslie wrote:
>> Thanks everyone for your responses to this.
>>
>> I might give the stylish extension a try or just stick to removing  
>> them by hand in the web developer extension.

> Sorry, bit late to the party, but FontExplorer X allows you to  
> activate and de-activate fonts, might be worth a try, I seem to recall  
> having to close and re-open the browser...

I'm also late to the party, but I wanted to add something that no one
else seems to have mentioned -- font-size-adjust (from CSS 2, but
removed -- alas! -- from CSS 2.1 due to lack of support).

To use it, you state your preferred font and any alternatives:

        font: 100% Helvetica, Arial, sans-serif; [1]

Then you declare the aspect-ratio[2] of your preferred font as the
value of the font-size-adjust property:

        font-size-adjust: 0.523;

Then, if your visitor's browser is obliged to use an alternate font,
it should automatically resize the substitute so the apparent size
is the same as your preferred font.

Now, the (rather substantial) disadvantage:

As far as I can tell[3], font-size-adjust is only supported in
recent Gecko browsers (e.g. Firefox 2).

Which leads me to my last question (on this topic, anyway):

How can we encourage the other (non-Mozilla) browser manufacturers
to add support for this very useful feature?

Kurtis Kroon
Franchise Tax Board
State of California
916-845-5603

Notes:

[1] I changed the fonts because:
* Helvetica and Arial are very similar to each other -- 
notwithstanding sometimes-heated arguments about each font's
provenance.
* I prefer Helvetica but acknowledge that it is more rare than
Arial.
* Verdana looks nothing like Helvetica or Arial -- so I removed
it (except, perhaps, as the "sans-serif" catch-all). If I really
wanted to use Verdana, I would have declared "Verdana, Tahoma,
'Trebuchet MS,' sans-serif" instead.

[2] The CSS 2 specification defines the aspect-ratio as the x-
height of a font divided by its font-size. For a hand's-on way
to calculate this, see Jukka Korpela's "Estimating the x-height
of a font" page: http://www.cs.tut.fi/~jkorpela/x-height.html.

[3] I discovered this little detail after looking at CSS/Web
Specification support pages on Apple's, Mozilla's, Opera's and
Microsoft's websites:

Apple:
        http://developer.apple.com/internet/safari/safari_css.html
Mozilla:
        http://developer.mozilla.org/en/docs/CSS:font-size-adjust
Opera:
        http://www.opera.com/docs/specs/opera9/
Microsoft:
        http://msdn2.microsoft.com/en-us/library/ms531207.aspx

________________________________________________________________________________________________________________

CONFIDENTIALITY NOTICE: This email from the State of California is for the sole 
use of the intended recipient and may contain confidential and privileged 
information.  Any unauthorized review or use, including disclosure or 
distribution, is prohibited.  If you are not the intended recipient, please 
contact the sender and destroy all copies of this email.  



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to