fix: change hajime sans to woff2
This commit is contained in:
@@ -24,14 +24,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
php-version: ${{ env.PHP_VERSION }}
|
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
|
- name: Run composer install if composer.json exists
|
||||||
if: steps.check_files.outputs.files_exists == 'true'
|
|
||||||
run: |
|
run: |
|
||||||
rm composer.lock
|
rm composer.lock
|
||||||
composer validate --no-check-publish
|
composer validate --no-check-publish
|
||||||
|
|||||||
@@ -54,13 +54,13 @@ page {
|
|||||||
# After that, the AssetCollector will handle publishing to _assets folder.
|
# After that, the AssetCollector will handle publishing to _assets folder.
|
||||||
includeAssets {
|
includeAssets {
|
||||||
hajimeSansTtf {
|
hajimeSansTtf {
|
||||||
path = EXT:base/Resources/Public/Fonts/Hajime-Sans.ttf
|
path = EXT:base/Resources/Public/Fonts/Hajime-Sans.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
|
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.
|
// Update font file names and ensure no spaces for better compatibility.
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Hajime Sans';
|
font-family: 'Hajime Sans';
|
||||||
src: url('../Fonts/Hajime-Sans.ttf') format('truetype'),
|
src: url('../Fonts/Hajime-Sans.woff2') format('woff2');
|
||||||
url('../Fonts/Hajime-Sans.otf') format('opentype');
|
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|||||||
Reference in New Issue
Block a user