Skip to content

Commit 6a53e1c

Browse files
committed
[css-fonts-5] Added avar2 font tech, fix w3c#10599
1 parent 73fdd90 commit 6a53e1c

1 file changed

Lines changed: 44 additions & 3 deletions

File tree

css-fonts-5/Overview.bs

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ spec:css-fonts-4; type:property; text:font-weight
3333
spec:css-fonts-4; type:descriptor; text:src
3434
</pre>
3535

36+
<pre class=biblio>
37+
{
38+
"avar2": {
39+
"title": "avar — Axis Variations Table Version 2",
40+
"href": "https://github.com/harfbuzz/boring-expansion-spec/blob/main/avar2.md",
41+
"publisher": "HarfBuzz",
42+
"date": "2022"
43+
}
44+
}
45+
</pre>
46+
3647

3748
<h2 id="introduction">
3849
Introduction</h2>
@@ -714,6 +725,30 @@ Issue(5466):
714725
Color Font Support</h2>
715726
-->
716727

728+
<h2 id="font-technologies-formats">
729+
Font Technologies and Formats
730+
</h2>
731+
732+
<h3 id="font-tech-definitions">Font tech</h3>
733+
734+
This section expands upon [[css-fonts-4#font-tech-definitions]].
735+
736+
The 'avar2' tech refers to support for version 2 of OpenType axis variations [[!avar2]],
737+
for flexible variation axis remapping.
738+
739+
<div class="example" id="ex-avar2">
740+
For example, a font using variation axis remapping is loaded only if supported:
741+
742+
<pre>
743+
@font-face {
744+
font-family: 'Roboto Flex';
745+
src: url('RobotoFlex-VF-avar2.woff2') format(woff2) tech(variations, avar2);
746+
src: url('RobotoFlex-VF.woff2') format(woff2) tech(variations);
747+
font-weight: 100 1000;
748+
font-stretch: 25% 151%;
749+
}
750+
</pre>
751+
</div>
717752

718753
<h2 id="security">Security Considerations</h2>
719754

@@ -731,10 +766,12 @@ Acknowledgments</h2>
731766
<a href="https://www.w3.org/TR/css-fonts-4/#acknowledgments">contributors to the previous level of this module</a>.
732767

733768
Secondly, we would like to acknowledge
769+
Dave Crossland from Google,
734770
Bernhard Fey from RealObjects,
735771
Xiaocheng Hu from Google,
736-
and
737772
Jonathan Kew from Mozilla,
773+
and
774+
Laurence Penney
738775
for their contributions to the improvements in this Level 5.
739776

740777
<h2 id="changes">
@@ -743,7 +780,11 @@ Changes
743780

744781
<h3 id="changes-20260206">Changes since the <a href="https://www.w3.org/TR/2024/WD-css-fonts-5-20240206/">WD of 6 February 2024</a></h3>
745782

746-
<!-- none -->
783+
<ul>
784+
<!-- to 18 Dec 2024 -->
785+
<li>Added the avar2 font tech</li>
786+
<li>Updated the incremental example to conform to the latest IFT specification</li>
787+
</ul>
747788

748789
<h3 id="changes-20211221">Changes since the <a href="https://www.w3.org/TR/2021/WD-css-fonts-5-20211221/">WD of 21 December 2021</a> </h3>
749790

@@ -753,7 +794,7 @@ Changes
753794
<li>Set a range for the grammar of font-size-adjust number</li>
754795
<li>Changed grammar of local() to use family-name instead for font-face-name</li>
755796
<li>Updated to current incremental font download keywords</li>
756-
<li>Made make feature-* plural for consistency with CSS Conditional 5, and 11.1 Font tech</li>
797+
<li>Made feature-* plural for consistency with CSS Conditional 5, and 11.1 Font tech</li>
757798
<li>Normalized infinity to ∞ in range notation </li>
758799
<li>Fixed a typo in the tech() function</li>
759800
</ul>

0 commit comments

Comments
 (0)