Generate instances of variable fonts

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2025-02-23 10:59:22 -08:00
parent 98a9d78273
commit 2b7645a572
10 changed files with 79 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
font-display: swap;
font-weight: $weight;
src: local('Inconsolata'),
url('../fonts/Inconsolata-VariableFont_wdth,wght.ttf');
url('../fonts/gen/Inconsolata-#{$weight}.woff2');
}
}
@@ -13,8 +13,8 @@
font-family: 'Lora';
font-display: swap;
src: local('Lora'),
url('../fonts/Lora-VariableFont_wght.ttf'),
url('../fonts/Lora-Italic-VariableFont_wght.ttf');
url('../fonts/gen/Lora-Regular.woff2'),
url('../fonts/gen/Lora-Italic.woff2');
}
}
@@ -24,8 +24,8 @@
font-display: swap;
font-weight: $weight;
src: local('Raleway'),
url('../fonts/Raleway-VariableFont_wght.ttf'),
url('../fonts/Raleway-Italic-VariableFont_wght.ttf');
url('../fonts/gen/Raleway-#{$weight}.woff2'),
url('../fonts/gen/Raleway-#{$weight}-Italic.woff2');
}
}