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

RE: [css3-fonts] @font-face Name {descriptor: value}

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Sun, 12 Sep 2010 21:44:54 +0000
To: Christoph Päper <christoph.paeper@crissov.de>, "www-style@w3.org list" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E27CE0ED0@TK5EX14MBXC111.redmond.corp.microsoft.com>
My understanding is that user agents first check whether the family
name is generic before looking for matching against @font-face and 
system fonts. In section 5 [1]:

# 2.If the family name is a generic family name, the user agent looks up 
# the appropriate font family name to be used. User agents may choose the 
# generic font family to use based on the language of the containing element 
# or the Unicode range of the character. The user agent attempts to find the 
# family name among fonts defined via @font-face rules and then among available 
# system fonts.

[1] http://dev.w3.org/csswg/css3-fonts/#font-matching-algorithm

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
> Behalf Of Christoph Päper
> Sent: Saturday, September 11, 2010 6:55 AM
> To: www-style@w3.org list
> Subject: [css3-fonts] @font-face Name {descriptor: value}
> <http://dev.w3.org/csswg/css3-fonts/#font-face-rule>
> The '@font-face' at-rule uses the 'font-family' descriptor to set the
> identifier which can be used in 'font-family' properties elsewhere in
> the cascading stylesheets. The current draft does not say whether
> generic family keywords can be overwritten this way.
> Other at-rules, e.g. '@page', '@keyframes', '@media' and perhaps more,
> put the identifier (string or keyword) outside the curly braces. There
> it can potentially be followed by special pseudo classes. ('@import',
> '@charset', '@namespace' have no ruleset in curly braces.)
> I know it's not an easy change and maybe the benefits are limited, but
> could we add
>   @font-face Foo {bar: baz}
> and, at the same time, deprecate
>   @font-face {font-family: Foo; bar: baz;}?
Received on Sunday, 12 September 2010 21:45:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC