Skip to content

Commit e0f8bba

Browse files
author
Litherum
committed
[css-fonts] Specify font-language-override as a @font-face descriptor
w3c#1392
1 parent 311174c commit e0f8bba

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Editor: John Daggett, Invited Expert, https://twitter.com/nattokirai, w3cid 4149
1111
Editor: Myles C. Maxfield, Apple Inc., mmaxfield@apple.com, w3cid 77180
1212
Abstract: This specification defines modifications to the existing <a href="https://drafts.csswg.org/css-fonts-3/">CSS Fonts 3</a> specification along with additional experimental features.
1313
At Risk: Synthesis of the 'font-variant-position' property
14+
At Risk: The 'font-language-override!!property' property
15+
At Risk: The 'font-language-override!!descriptor' descriptor
1416
Ignored Terms: font-palette, <named-palette-color>
1517
</pre>
1618

@@ -2258,6 +2260,18 @@ Initial: auto
22582260
For: @font-feature-values
22592261
</pre>
22602262

2263+
<h3 id="font-language-override-desc">
2264+
Default font language overriding: the 'font-language-override' descriptor</h3>
2265+
2266+
<pre class='descdef'>
2267+
Name: font-language-override
2268+
Value: normal | <<string>>
2269+
For: @font-face
2270+
Initial: normal
2271+
</pre>
2272+
2273+
This descriptor defines initial settings that apply when the font defined by an @font-face rule is rendered. It does not affect font selection. Values are identical to those defined for the 'font-language-override!!property' property defined below except that the value inherit is omitted. When multiple font feature descriptors, properties, or variations are used, the cumulative effect on text rendering is detailed in the section Font Feature and Variation Resolution below.
2274+
22612275
<h2 id="font-matching-algorithm">Font Matching Algorithm</h2>
22622276

22632277
The algorithm below describes how fonts are associated with individual runs of text.
@@ -2986,29 +3000,34 @@ text run.
29863000
Then, the values applied in this step should be clamped (possibly again) to the values
29873001
that are supported by the font.
29883002

2989-
3. If the font is defined via an ''@font-face'' rule, the font variations
3003+
3. If the font is defined via an ''@font-face'' rule, the font language override
3004+
implied by the 'font-language-override!!descriptor' descriptor in the ''@font-face'' rule.
3005+
3006+
4. If the font is defined via an ''@font-face'' rule, the font variations
29903007
implied by the 'font-variation-settings!!descriptor' descriptor in the ''@font-face'' rule.
29913008

2992-
4. If the font is defined via an ''@font-face'' rule, the font features
3009+
5. If the font is defined via an ''@font-face'' rule, the font features
29933010
implied by the 'font-feature-settings!!descriptor' descriptor in the ''@font-face'' rule.
29943011

2995-
5. Font variations implied by the value of the 'font-optical-sizing!!property' property.
3012+
6. The font language override implied by the value of the 'font-language-override!!property' property.
3013+
3014+
7. Font variations implied by the value of the 'font-optical-sizing!!property' property.
29963015

2997-
6. Font features implied by the value of the 'font-variant!!property' property,
3016+
8. Font features implied by the value of the 'font-variant!!property' property,
29983017
the related 'font-variant!!property' subproperties and any other CSS property
29993018
that uses OpenType features (e.g. the 'font-kerning!!property' property).
30003019

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

3004-
7. Feature settings determined by properties other than 'font-variant!!property' or
3023+
9. Feature settings determined by properties other than 'font-variant!!property' or
30053024
'font-feature-settings!!property'. For example, setting a
30063025
non-default value for the 'letter-spacing' property disables common ligatures.
30073026

3008-
8. Font variations implied by the value of the 'font-variation-settings!!property' property.
3027+
10. Font variations implied by the value of the 'font-variation-settings!!property' property.
30093028
These values should be clamped to the values that are supported by the font.
30103029

3011-
9. Font features implied by the value of 'font-feature-settings!!property' property.
3030+
11. Font features implied by the value of 'font-feature-settings!!property' property.
30123031

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

0 commit comments

Comments
 (0)