W3C home > Mailing lists > Public > www-style@w3.org > November 2009

RE: font features in CSS

From: Stephen Zilles <szilles@adobe.com>
Date: Sun, 1 Nov 2009 17:54:33 -0800
To: Håkon Wium Lie <howcome@opera.com>, "robert@ocallahan.org" <robert@ocallahan.org>
CC: "www-font@w3.org" <www-font@w3.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <CE2F61DA5FA23945A4EA99A212B157951D6CCD5BAA@nambx03.corp.adobe.com>
+1 for Rob's suggestion below from me as well.

And, like Hakon, I am for keeping the #font-face rule behavior as it is now.

My only concern, however, is that turning features on or off needs to occur in the content not just in the font descriptor. Yes, I know that one can have two fonts that are identical except for the feature of interest and switch fonts to effect the turning on and off of the feature, but that seems rather a complex way to make a temporary "binary" change. And, if there are a lot of features to control, this could lead to a lot of font descriptors.

Steve Zilles


> -----Original Message-----
> From: www-font-request@w3.org [mailto:www-font-request@w3.org] On Behalf Of
> Håkon Wium Lie
> Sent: Friday, October 30, 2009 1:50 PM
> To: robert@ocallahan.org
> Cc: www-font@w3.org; www-style@w3.org
> Subject: Re: font features in CSS
> 
> Also sprach Robert O'Callahan:
> 
>  > It seems to me that the font options that are face-dependent (like
> selecting
>  > particular alternates) should be in the @font-face rule, since only
> there
>  > can you associate options with a particular face. Font options that are
>  > face-independent (i.e., font options that be applied correctly even
> without
>  > knowing in advance which face will be used, like small-caps) should be
>  > regular CSS properties.
> 
> +1
> 
>  > In a @font-face rule where you specify alternates, you could use a
> single
>  > 'src' value and be sure that if the file is not loaded, the alternates
> will
>  > not be applied, and do your fallback in font-family rules in the
> content.
>  >
>  > If that turns out to be too cumbersome, we could extend @font-face so
> that
>  > you can associate font options with particular sources.
> 
> I'd rather not change @font-face to save typing for this, arguably,
> narrow use case.
> 
> -h&kon
>               Håkon Wium Lie                          CTO °þe®ª
> howcome@opera.com                  http://people.opera.com/howcome


Received on Monday, 2 November 2009 01:55:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:22 GMT