fix: change to woff2 font
This commit is contained in:
@@ -66,25 +66,13 @@ page {
|
||||
}
|
||||
|
||||
interVariable {
|
||||
path = EXT:base/Resources/Public/Fonts/Inter-VariableFont_opsz,wght.ttf
|
||||
path = EXT:base/Resources/Public/Fonts/Inter.woff2
|
||||
type = font
|
||||
resourceType = font
|
||||
preload = 1
|
||||
as = font
|
||||
attributes {
|
||||
type = font/ttf
|
||||
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
|
||||
type = font/woff2
|
||||
crossorigin = anonymous
|
||||
}
|
||||
}
|
||||
|
||||
BIN
packages/base/Resources/Public/Fonts/Inter.woff2
Normal file
BIN
packages/base/Resources/Public/Fonts/Inter.woff2
Normal file
Binary file not shown.
@@ -10,20 +10,12 @@
|
||||
|
||||
@font-face {
|
||||
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-style: normal;
|
||||
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 {
|
||||
font-family: 'Inter', sans-serif;
|
||||
font-weight: 500;
|
||||
|
||||
Reference in New Issue
Block a user