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

@@ -24,14 +24,7 @@ jobs:
with:
php-version: ${{ env.PHP_VERSION }}
- name: Check if composer.json exists
id: check_files
uses: andstor/file-existence-action@87d74d4732ddb824259d80c8a508c0124bf1c673
with:
files: 'composer.json'
- name: Run composer install if composer.json exists
if: steps.check_files.outputs.files_exists == 'true'
run: |
rm composer.lock
composer validate --no-check-publish

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;