Skip to content

Commit 0170cbc

Browse files
author
litherum
committed
[css-fonts-4] Add font-variation-settings descriptor in @font-face
#1652
1 parent 688cc1a commit 0170cbc

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

css-fonts-4/Overview.bs

+22-12
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,7 @@ body { font-family: DroidSans; }
19211921
</div>
19221922

19231923
<h3 id="font-rend-desc">
1924-
Font features: the 'font-variant' and 'font-feature-settings' descriptors</h3>
1924+
Font features and variations: the 'font-variant', 'font-feature-settings', and 'font-variation-settings' descriptors</h3>
19251925

19261926
<pre class='descdef'>
19271927
Name: font-variant
@@ -1946,14 +1946,21 @@ Initial: normal
19461946
For: @font-face
19471947
</pre>
19481948

1949+
<pre class='descdef'>
1950+
Name: font-variation-settings
1951+
Value: normal | [ <<string>> <<number>>] #
1952+
Initial: normal
1953+
For: @font-face
1954+
</pre>
1955+
19491956
These descriptors define initial settings that apply when the font defined by
19501957
an <code>@font-face</code> rule is rendered. They do not affect font selection.
19511958
Values are identical to those defined for the corresponding
1952-
'font-variant' and 'font-feature-settings' properties defined below
1959+
'font-variant', 'font-feature-settings', and 'font-variation-settings' properties defined below
19531960
except that the value 'inherit' is omitted. When multiple font
1954-
feature descriptors or properties are used, the cumulative effect on
1961+
feature descriptors, properties, or variations are used, the cumulative effect on
19551962
text rendering is detailed in the section
1956-
<a href="#font-feature-resolution">Font Feature Resolution</a> below.
1963+
<a href="#font-feature-variation-resolution">Font Feature and Variation Resolution</a> below.
19571964
In cases where specific values define synthesized fallback for certain
19581965
'font-variant' subproperties, the same synthesized fallback
19591966
applies when used within those values are used with the
@@ -2685,29 +2692,32 @@ text run.
26852692
Then, the values applied in this step should be clamped (possibly again) to the values
26862693
that are supported by the font.
26872694

2688-
3. If the font is defined via an ''@font-face'' rule, the font features
2689-
implied by the font-variant descriptor in the ''@font-face'' rule.
2695+
3. If the font is defined via an ''@font-face'' rule, the font variations
2696+
implied by the 'font-variation-settings' descriptor in the ''@font-face'' rule.
26902697

26912698
4. If the font is defined via an ''@font-face'' rule, the font features
2692-
implied by the font-feature-settings descriptor in the ''@font-face'' rule.
2699+
implied by the 'font-feature-settings' descriptor in the ''@font-face'' rule.
2700+
2701+
5. If the font is defined via an ''@font-face'' rule, the font features
2702+
implied by the 'font-feature-settings' descriptor in the ''@font-face'' rule.
26932703

2694-
5. Font variations implied by the value of the 'font-optical-sizing' property.
2704+
6. Font variations implied by the value of the 'font-optical-sizing' property.
26952705

2696-
6. Font features implied by the value of the 'font-variant' property,
2706+
7. Font features implied by the value of the 'font-variant' property,
26972707
the related 'font-variant' subproperties and any other CSS property
26982708
that uses OpenType features (e.g. the 'font-kerning' property).
26992709

27002710
<!-- other CSS props override 'font-variant' but not 'font-feature-settings' -->
27012711
<!-- http://lists.w3.org/Archives/Public/www-style/2013Aug/0110.html -->
27022712

2703-
7. Feature settings determined by properties other than 'font-variant' or
2713+
8. Feature settings determined by properties other than 'font-variant' or
27042714
'font-feature-settings'. For example, setting a
27052715
non-default value for the 'letter-spacing' property disables common ligatures.
27062716

2707-
8. Font variations implied by the value of the 'font-variation-settings' property.
2717+
9. Font variations implied by the value of the 'font-variation-settings' property.
27082718
These values should be clamped to the values that are supported by the font.
27092719

2710-
9. Font features implied by the value of 'font-feature-settings' property.
2720+
10. Font features implied by the value of 'font-feature-settings' property.
27112721

27122722
This ordering allows authors to set up a general set of defaults
27132723
for fonts within their ''@font-face'' rules, then override them with

0 commit comments

Comments
 (0)