Skip to content

Commit 6a874c3

Browse files
committed
Syntax updates
1 parent 04e9e23 commit 6a874c3

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

variable-fonts/grade.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<style>
99
@font-face {
1010
font-family: 'Amstelvar VF';
11-
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2');
11+
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
1212
font-weight: 100 900;
13-
font-stretch: 75 100;
13+
font-stretch: 75% 100%;
1414
font-style: normal;
1515
font-display: swap;
1616
}

variable-fonts/italic.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
font-family: 'Jost VF';
1111
src: url('fonts/jost-VF.woff2') format('woff2-variations');
1212
font-weight: 300 900;
13-
font-stretch: 75 150;
14-
font-style: normal;
13+
font-stretch: 75% 150%;
14+
font-style: oblique 0deg 20deg;
1515
font-display: swap;
1616
}
1717

@@ -106,17 +106,20 @@
106106
/* italic range is 0 or 1 */
107107
.container1 * {
108108
font-style: italic;
109+
font-synthesis: none;
109110
}
110111
</style>
111112
<style class="editable2">
112113
/* italic range is 0 or 1 */
113114
.container2 * {
115+
font-synthesis: none;
114116
font-variation-settings: 'ital' 1;
115117
}
116118
</style>
117119
<style class="editable3">
118120
/* Adjust with slider & custom property */
119121
.container3 * {
122+
font-synthesis: none;
120123
font-variation-settings: 'ital' var(--text-axis);
121124
}
122125
</style>
@@ -134,6 +137,7 @@
134137
/* italic can only be italic or normal */
135138
.container1 * {
136139
font-style: italic;
140+
font-synthesis: none;
137141
}
138142
</textarea>
139143
<textarea id="code1" class="playable-html1">
@@ -151,6 +155,7 @@
151155
<textarea class="playable-css2">
152156
/* italic can only be italic or normal */
153157
.container2 * {
158+
font-synthesis: none;
154159
font-variation-settings: 'ital' 1;
155160
}
156161
</textarea>
@@ -169,6 +174,7 @@
169174
<textarea class="playable-css3">
170175
/* Adjust with slider & custom property */
171176
.container3 * {
177+
font-synthesis: none;
172178
font-variation-settings: 'ital' var(--text-axis);
173179
}
174180
</textarea>

variable-fonts/optical-sizing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
font-family: 'Amstelvar VF';
1111
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
1212
font-weight: 300 900;
13-
font-stretch: 75 150;
13+
font-stretch: 75% 150%;
1414
font-style: normal;
1515
font-display: swap;
1616
}

variable-fonts/sample-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
font-family: 'Amstelvar VF';
1111
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
1212
font-weight: 300 900;
13-
font-stretch: 75 150;
13+
font-stretch: 75% 150%;
1414
font-style: normal;
1515
font-display: swap;
1616
}

variable-fonts/slant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
font-family: 'Roboto VF';
1111
src: url('fonts/Roboto-VF.woff2') format('woff2-variations');
1212
font-weight: 100 900;
13-
font-stretch: 75 100;
13+
font-stretch: 75% 100%;
1414
font-style: oblique 0deg 12deg;
1515
font-display: swap;
1616
}

0 commit comments

Comments
 (0)