Skip to content

Syntax updates #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 18, 2018
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
4 changes: 2 additions & 2 deletions variable-fonts/grade.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/AmstelvarAlpha-VF.woff2') format('woff2');
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
font-weight: 100 900;
font-stretch: 75 100;
font-stretch: 75% 100%;
font-style: normal;
font-display: swap;
}
Expand Down
10 changes: 8 additions & 2 deletions variable-fonts/italic.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
font-family: 'Jost VF';
src: url('fonts/jost-VF.woff2') format('woff2-variations');
font-weight: 300 900;
font-stretch: 75 150;
font-style: normal;
font-stretch: 75% 150%;
font-style: oblique 0deg 20deg;
font-display: swap;
}

Expand Down Expand Up @@ -106,17 +106,20 @@
/* italic range is 0 or 1 */
.container1 * {
font-style: italic;
font-synthesis: none;
}
</style>
<style class="editable2">
/* italic range is 0 or 1 */
.container2 * {
font-synthesis: none;
font-variation-settings: 'ital' 1;
}
</style>
<style class="editable3">
/* Adjust with slider & custom property */
.container3 * {
font-synthesis: none;
font-variation-settings: 'ital' var(--text-axis);
}
</style>
Expand All @@ -134,6 +137,7 @@
/* italic can only be italic or normal */
.container1 * {
font-style: italic;
font-synthesis: none;
}
</textarea>
<textarea id="code1" class="playable-html1">
Expand All @@ -151,6 +155,7 @@
<textarea class="playable-css2">
/* italic can only be italic or normal */
.container2 * {
font-synthesis: none;
font-variation-settings: 'ital' 1;
}
</textarea>
Expand All @@ -169,6 +174,7 @@
<textarea class="playable-css3">
/* Adjust with slider & custom property */
.container3 * {
font-synthesis: none;
font-variation-settings: 'ital' var(--text-axis);
}
</textarea>
Expand Down
2 changes: 1 addition & 1 deletion variable-fonts/optical-sizing.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
font-family: 'Amstelvar VF';
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
font-weight: 300 900;
font-stretch: 75 150;
font-stretch: 75% 150%;
font-style: normal;
font-display: swap;
}
Expand Down
2 changes: 1 addition & 1 deletion variable-fonts/sample-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
font-family: 'Amstelvar VF';
src: url('fonts/AmstelvarAlpha-VF.woff2') format('woff2-variations');
font-weight: 300 900;
font-stretch: 75 150;
font-stretch: 75% 150%;
font-style: normal;
font-display: swap;
}
Expand Down
2 changes: 1 addition & 1 deletion variable-fonts/slant.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
font-family: 'Roboto VF';
src: url('fonts/Roboto-VF.woff2') format('woff2-variations');
font-weight: 100 900;
font-stretch: 75 100;
font-stretch: 75% 100%;
font-style: oblique 0deg 12deg;
font-display: swap;
}
Expand Down