引入 fontface

This commit is contained in:
lutinglt
2024-12-27 14:20:43 +08:00
parent 5a203804be
commit 73052da7f2
6 changed files with 79 additions and 5 deletions

48
src/fontface.scss Normal file
View File

@@ -0,0 +1,48 @@
@font-face {
font-family: 'Maple Hand';
src: local('Maple Hand'),
url('/assets/fonts/MapleHand-Regular.ttf') format('truetype');
font-display: swap;
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Maple Hand';
src: local('Maple Hand'),
url('/assets/fonts/MapleHand-Bold.ttf') format('truetype');
font-display: swap;
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'VictorMono NF';
src: local('VictorMono NF'),
url('/assets/fonts/VictorMonoNerdFont-Regular.ttf') format('truetype');
font-display: swap;
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'VictorMono NF';
src: local('VictorMono NF'),
url('/assets/fonts/VictorMonoNerdFont-Italic.ttf') format('truetype');
font-display: swap;
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'VictorMono NF';
src: local('VictorMono NF'),
url('/assets/fonts/VictorMonoNerdFont-Bold.ttf') format('truetype');
font-display: swap;
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'VictorMono NF';
src: local('VictorMono NF'),
url('/assets/fonts/VictorMonoNerdFont-BoldItalic.ttf') format('truetype');
font-display: swap;
font-weight: bold;
font-style: italic;
}

View File

@@ -1,11 +1,11 @@
// Made by Luting ^-^
:root :lang(zh-CN) {
--fonts-override: 'Maple Hand', 'VictorMono Nerd Font', 'HYZhengYuan';
--fonts-override: "Maple Hand", "VictorMono NF", "VictorMono Nerd Font"
}
.job-step-logs {
font-family: 'VictorMono Nerd Font', 'Maple Hand', 'HYZhengYuan' !important;
font-weight: 500;
font-family: "VictorMono NF", "VictorMono Nerd Font", "Maple Hand" !important;
font-weight: 500
}
:root {

View File

@@ -1,4 +1,5 @@
/* Made by Luting ^-^ */
@use 'fontface';
@use 'chroma';
@use 'codemirror';
@use 'root';