W3C home > Mailing lists > Public > www-style@w3.org > March 2010

Re: [css3-fonts] font-specific feature handling

From: John Daggett <jdaggett@mozilla.com>
Date: Fri, 19 Mar 2010 00:04:03 -0700 (PDT)
To: David Singer <singer@apple.com>
Cc: www-style@w3.org
Message-ID: <1906391483.25773.1268982243438.JavaMail.root@cm-mail03.mozilla.org>
David Singer wrote:

> so, why doesn't the font-name appear in the font-variant rule?  I must
> be being dense...
> 
> instead of
> 
> On Mar 18, 2010, at 10:31 , John Daggett wrote:
> >  @font-face {
> >    font-family: MyFancyFont;
> >    font-variant: styleset(1,3);
> >  }
> > 
> 
> we write
>  @font-face {
>    font-family: MyFancyFont;
>    font-variant: styleset(MyFancyFont , 1,3);
>  }
> 
> which leaves us open to different style-sets for different fonts,
> which means you could customize your fallbacks (or even your expected
> substitutions) through multiple font-variant rules...

Not quite sure what you're describing here.  As the spec is currently
written, font-variant values within an @font-face rule apply *only* to
that font face.  So with your definition above, the styleset(1,3)
setting would only apply to MyFancyFont, not to Gabriola in the fallback
case:

  h3 { font-family: MyFancyFont, Gabriola; }

Perhaps you were suggesting something along the lines of option (3) in
the original post?

http://lists.w3.org/Archives/Public/www-style/2010Feb/0244.html

Regards,

John
Received on Friday, 19 March 2010 07:04:37 GMT

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