fix: change hajime sans to woff2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
BIN
packages/base/Resources/Public/Fonts/Hajime-Sans.woff2
Normal file
BIN
packages/base/Resources/Public/Fonts/Hajime-Sans.woff2
Normal file
Binary file not shown.
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user