fix: change font preloading

This commit is contained in:
2024-12-15 02:23:27 +01:00
parent 5dbee89bd7
commit 1a20c0e7a3
4 changed files with 40 additions and 15 deletions

View File

@@ -1,11 +1,8 @@
// The fonts available are OTF and TTF. Modern browsers prefer WOFF/WOFF2,
// Ideally, providing WOFF2 versions would be best practice for performance.
// Add font-display to improve Google PageSpeed rendering.
// 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.ttf') format('truetype'),
url('../Fonts/Hajime-Sans.otf') format('opentype');
font-weight: 400;
font-style: normal;
font-display: swap;