Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed variable-fonts/fonts/Amstelvar-Italic-VF.woff2
Binary file not shown.
Binary file removed variable-fonts/fonts/Amstelvar-Roman-VF.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion variable-fonts/slant.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}

body {
font: 1.2em "Roboto VF", Georgia, serif;
font: 1.2em "Roboto VF", Helvetica, sans-serif;
margin: 20px;
padding: 0;
}
Expand Down
18 changes: 5 additions & 13 deletions variable-fonts/weight.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,12 @@
<style>
@font-face {
font-family: 'Amstelvar VF';
src: url('fonts/Amstelvar-Roman-VF.woff2') format('woff2-variations');
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
font-weight: 300 900;
font-stretch: 75 150;
font-stretch: 35% 100%;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Amstelvar VF';
src: url('fonts/Amstelvar-Italic-VF.woff2') format('woff2-variations');
font-weight: normal;
font-stretch: normal;
font-style: italic;
font-display: swap;
}

html {
box-sizing: border-box;
Expand Down Expand Up @@ -101,7 +93,7 @@
}

.container * {
font-size: 3rem;
font-size: 4rem;
margin: 1.5rem 0;
}

Expand All @@ -111,13 +103,13 @@

</style>
<style class="editable1">
/* weight range is 300 to 900 */
/* weight range is 100 to 900 */
.container1 * {
font-weight: 625;
}
</style>
<style class="editable2">
/* weight range is 300 to 900 */
/* weight range is 100 to 900 */
.container2 * {
font-variation-settings: 'wght' 625;
}
Expand Down
16 changes: 8 additions & 8 deletions variable-fonts/width.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<style>
@font-face {
font-family: 'Amstelvar VF';
src: url('fonts/Amstelvar-Roman-VF.woff2') format('woff2-variations');
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
font-weight: 300 900;
font-stretch: 75 150;
font-stretch: 35% 100%;
font-style: normal;
font-display: swap;
}
Expand Down Expand Up @@ -111,13 +111,13 @@

</style>
<style class="editable1">
/* width range is 75 to 150 */
/* width range is 55% to 100% */
.container1 * {
font-stretch: 100;
font-stretch: 100%;
}
</style>
<style class="editable2">
/* width range is an integer from 75 to 150 */
/* width range is an integer from 55 to 100 */
.container2 * {
font-variation-settings: 'wdth' 100;
}
Expand All @@ -139,7 +139,7 @@
</div>
</section>
<textarea class="playable-css1">
/* width range is from 75% to 150% */
/* width range is from 55% to 100% */
.container1 * {
font-stretch: 100%;
}
Expand All @@ -157,7 +157,7 @@
</div>
</section>
<textarea class="playable-css2">
/* width range is an integer from 75 to 150 */
/* width range is an integer from 55 to 100 */
.container2 * {
font-variation-settings: 'wdth' 100;
}
Expand Down Expand Up @@ -186,7 +186,7 @@
</div>
</textarea>
<div class="controls range-slider">
<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">
<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">
</div>
</div>
</div>
Expand Down