fix: change to woff2 font
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
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-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;
|
||||||
|
|||||||
Reference in New Issue
Block a user