fix: change hajime sans to woff2

This commit is contained in:
2024-12-15 02:44:09 +01:00
parent 745d922159
commit 30e30f7d24
4 changed files with 3 additions and 11 deletions

View File

@@ -54,13 +54,13 @@ page {
# After that, the AssetCollector will handle publishing to _assets folder.
includeAssets {
hajimeSansTtf {
path = EXT:base/Resources/Public/Fonts/Hajime-Sans.ttf
path = EXT:base/Resources/Public/Fonts/Hajime-Sans.woff2
type = font
resourceType = font
preload = 1
as = font
attributes {
type = font/ttf
type = font/woff2
crossorigin = anonymous
}
}

Binary file not shown.

View File

@@ -1,8 +1,7 @@
// Update font file names and ensure no spaces for better compatibility.
@font-face {
font-family: 'Hajime Sans';
src: url('../Fonts/Hajime-Sans.ttf') format('truetype'),
url('../Fonts/Hajime-Sans.otf') format('opentype');
src: url('../Fonts/Hajime-Sans.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;