fix: change to woff2 font

This commit is contained in:
2024-12-15 02:32:21 +01:00
parent 1a20c0e7a3
commit cb459a03da
3 changed files with 3 additions and 23 deletions

View File

@@ -66,25 +66,13 @@ page {
} }
interVariable { interVariable {
path = EXT:base/Resources/Public/Fonts/Inter-VariableFont_opsz,wght.ttf path = EXT:base/Resources/Public/Fonts/Inter.woff2
type = font type = font
resourceType = font resourceType = font
preload = 1 preload = 1
as = font as = font
attributes { attributes {
type = font/ttf type = font/woff2
crossorigin = anonymous
}
}
interVariableItalic {
path = EXT:base/Resources/Public/Fonts/Inter-Italic-VariableFont_opsz,wght.ttf
type = font
resourceType = font
preload = 1
as = font
attributes {
type = font/ttf
crossorigin = anonymous crossorigin = anonymous
} }
} }

Binary file not shown.

View File

@@ -10,20 +10,12 @@
@font-face { @font-face {
font-family: 'Inter'; font-family: 'Inter';
src: url('../Fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype'); src: url('../Fonts/Inter.woff2') format('woff2');
font-weight: 100 900; // Adjust as needed for variable font range font-weight: 100 900; // Adjust as needed for variable font range
font-style: normal; font-style: normal;
font-display: swap; font-display: swap;
} }
@font-face {
font-family: 'Inter';
src: url('../Fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
body { body {
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
font-weight: 500; font-weight: 500;