Skip to content

Commit 04e9e23

Browse files
committed
Update to use only AmstelvarAlpha instead of both
1 parent 4ed5945 commit 04e9e23

File tree

5 files changed

+14
-22
lines changed

5 files changed

+14
-22
lines changed
-54.6 KB
Binary file not shown.
-215 KB
Binary file not shown.

variable-fonts/slant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
body {
30-
font: 1.2em "Roboto VF", Georgia, serif;
30+
font: 1.2em "Roboto VF", Helvetica, sans-serif;
3131
margin: 20px;
3232
padding: 0;
3333
}

variable-fonts/weight.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@
88
<style>
99
@font-face {
1010
font-family: 'Amstelvar VF';
11-
src: url('fonts/Amstelvar-Roman-VF.woff2') format('woff2-variations');
11+
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
1212
font-weight: 300 900;
13-
font-stretch: 75 150;
13+
font-stretch: 35% 100%;
1414
font-style: normal;
1515
font-display: swap;
1616
}
17-
@font-face {
18-
font-family: 'Amstelvar VF';
19-
src: url('fonts/Amstelvar-Italic-VF.woff2') format('woff2-variations');
20-
font-weight: normal;
21-
font-stretch: normal;
22-
font-style: italic;
23-
font-display: swap;
24-
}
2517

2618
html {
2719
box-sizing: border-box;
@@ -101,7 +93,7 @@
10193
}
10294

10395
.container * {
104-
font-size: 3rem;
96+
font-size: 4rem;
10597
margin: 1.5rem 0;
10698
}
10799

@@ -111,13 +103,13 @@
111103

112104
</style>
113105
<style class="editable1">
114-
/* weight range is 300 to 900 */
106+
/* weight range is 100 to 900 */
115107
.container1 * {
116108
font-weight: 625;
117109
}
118110
</style>
119111
<style class="editable2">
120-
/* weight range is 300 to 900 */
112+
/* weight range is 100 to 900 */
121113
.container2 * {
122114
font-variation-settings: 'wght' 625;
123115
}

variable-fonts/width.html

Lines changed: 8 additions & 8 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/Amstelvar-Roman-VF.woff2') format('woff2-variations');
11+
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
1212
font-weight: 300 900;
13-
font-stretch: 75 150;
13+
font-stretch: 35% 100%;
1414
font-style: normal;
1515
font-display: swap;
1616
}
@@ -111,13 +111,13 @@
111111

112112
</style>
113113
<style class="editable1">
114-
/* width range is 75 to 150 */
114+
/* width range is 55% to 100% */
115115
.container1 * {
116-
font-stretch: 100;
116+
font-stretch: 100%;
117117
}
118118
</style>
119119
<style class="editable2">
120-
/* width range is an integer from 75 to 150 */
120+
/* width range is an integer from 55 to 100 */
121121
.container2 * {
122122
font-variation-settings: 'wdth' 100;
123123
}
@@ -139,7 +139,7 @@
139139
</div>
140140
</section>
141141
<textarea class="playable-css1">
142-
/* width range is from 75% to 150% */
142+
/* width range is from 55% to 100% */
143143
.container1 * {
144144
font-stretch: 100%;
145145
}
@@ -157,7 +157,7 @@
157157
</div>
158158
</section>
159159
<textarea class="playable-css2">
160-
/* width range is an integer from 75 to 150 */
160+
/* width range is an integer from 55 to 100 */
161161
.container2 * {
162162
font-variation-settings: 'wdth' 100;
163163
}
@@ -186,7 +186,7 @@
186186
</div>
187187
</textarea>
188188
<div class="controls range-slider">
189-
<label for="controls__slider">Adjust Width: </label><input type="range" name="range-slider" value="100" id="text-axis" class="controls--slider" min="75" max="150">
189+
<label for="controls__slider">Adjust Width: </label><input type="range" name="range-slider" value="100" id="text-axis" class="controls--slider" min="55" max="100">
190190
</div>
191191
</div>
192192
</div>

0 commit comments

Comments
 (0)