W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

[csswg-drafts] [css-fonts-3] Change @font-face and @font-feature-values syntax definitions to use CSS syntax and link to those definitions

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Thu, 20 Oct 2016 09:48:18 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-184183085-1476956896-sysbot+gh@w3.org>
SebastianZ has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-fonts-3] Change @font-face and @font-feature-values syntax 
definitions to use CSS syntax and link to those definitions ==
The current definition of the `<font-family>` type is:

> The name of a font family of choice such as Helvetica or Verdana in 
the previous example.

And the `<feature-index>` and  `<feature-value-name>` types are 
currently defined like this:

>  … the @font-feature-values rule is used to define values for a 
specific font family or set of families that associate a font-specific
 numeric `<feature-index>` with a custom `<feature-value-name>`, which
 is then used in this property to select specific alternates

This is somewhat vague, as there are no references to the related 
syntax definitions.

The definitions should be changed to use the syntax from the [CSS 
Syntax Module](https://drafts.csswg.org/css-syntax/).

I.e. they may look like this:

```
@font-face = @font-face { <declaration-list> }
```

where `<declaration-list>` can only contain the @font-face 
descriptors.

and

```
@font-feature-values = @font-feature-values <family-name># { 
<rule-list> }

<family-name> = <string> | <custom-ident>+

<feature-value-block> = <feature-type> { <declaration-list> }

<feature-type> = @stylistic | @historical-forms | @styleset | 
@character-variant | @swash | @ornaments | @annotation

<feature-value> = <integer>+
```

where `<rule-list>` can only contain `<feature-value-block>` rules, 
`<feature-type>` takes all font specific property names of 
`font-variant-alternates` prefixed with '@', `<declaration-list>` can 
only contain feature value definition properties holding 
`<feature-value>` values and the `<integer>` values in 
`<feature-value>` denote the feature indices.

The references to these syntax definitions should then link to them.

Sebastian

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/624 using your GitHub 
account
Received on Thursday, 20 October 2016 09:48:29 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:04 UTC