mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: 字体缺失
This commit is contained in:
BIN
napcat.webui/public/fonts/FiraCode-VariableFont_wght.ttf
Normal file
BIN
napcat.webui/public/fonts/FiraCode-VariableFont_wght.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
napcat.webui/public/fonts/NotoSerifSC-VariableFont_wght.ttf
Normal file
BIN
napcat.webui/public/fonts/NotoSerifSC-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/Outfit-VariableFont_wght.ttf
Normal file
BIN
napcat.webui/public/fonts/Outfit-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Black.ttf
Executable file
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Black.ttf
Executable file
Binary file not shown.
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Bold.ttf
Executable file
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Bold.ttf
Executable file
Binary file not shown.
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Light.ttf
Executable file
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Light.ttf
Executable file
Binary file not shown.
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Medium.ttf
Executable file
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Medium.ttf
Executable file
Binary file not shown.
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Regular.ttf
Executable file
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Regular.ttf
Executable file
Binary file not shown.
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Thin.ttf
Executable file
BIN
napcat.webui/public/fonts/harmony/HarmonyOS_Sans_SC_Thin.ttf
Executable file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Bold.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Bold.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-BoldItalic.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Italic.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Italic.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Light.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Light.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-LightItalic.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-LightItalic.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Medium.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Medium.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-MediumItalic.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Regular.ttf
Normal file
BIN
napcat.webui/public/fonts/ubuntu/Ubuntu-Regular.ttf
Normal file
Binary file not shown.
@@ -33,7 +33,7 @@ const XTerm = forwardRef<XTermRef, React.HTMLAttributes<HTMLDivElement>>(
|
|||||||
}
|
}
|
||||||
const terminal = new Terminal({
|
const terminal = new Terminal({
|
||||||
allowTransparency: true,
|
allowTransparency: true,
|
||||||
fontFamily: '"Fira Code", "Noto Serif SC", monospace' // 添加回退字体
|
fontFamily: '"Fira Code", "Harmony", "Noto Serif SC", monospace'
|
||||||
})
|
})
|
||||||
terminalRef.current = terminal
|
terminalRef.current = terminal
|
||||||
const fitAddon = new FitAddon()
|
const fitAddon = new FitAddon()
|
||||||
|
139
napcat.webui/src/styles/fonts.css
Normal file
139
napcat.webui/src/styles/fonts.css
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
/* HarmonyOS Sans SC */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Harmony';
|
||||||
|
src: url('/fonts/harmony/HarmonyOS_Sans_SC_Bold.ttf') format('truetype');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Harmony';
|
||||||
|
src: url('/fonts/harmony/HarmonyOS_Sans_SC_Black.ttf') format('truetype');
|
||||||
|
font-weight: 900;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Harmony';
|
||||||
|
src: url('/fonts/harmony/HarmonyOS_Sans_SC_Medium.ttf') format('truetype');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Harmony';
|
||||||
|
src: url('/fonts/harmony/HarmonyOS_Sans_SC_Regular.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Harmony';
|
||||||
|
src: url('/fonts/harmony/HarmonyOS_Sans_SC_Light.ttf') format('truetype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Harmony';
|
||||||
|
src: url('/fonts/harmony/HarmonyOS_Sans_SC_Thin.ttf') format('truetype');
|
||||||
|
font-weight: 100;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ubuntu */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/ubuntu/Ubuntu-Bold.ttf') format('truetype');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/ubuntu/Ubuntu-Regular.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/ubuntu/Ubuntu-Light.ttf') format('truetype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/ubuntu/Ubuntu-BoldItalic.ttf') format('truetype');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/ubuntu/Ubuntu-Italic.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/ubuntu/Ubuntu-LightItalic.ttf') format('truetype');
|
||||||
|
font-weight: 300;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/pingfang/Ubuntu-Medium.ttf') format('truetype');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
src: url('/fonts/pingfang/Ubuntu-MediumItalic.ttf') format('truetype');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* LibreBaskerville */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Libre Baskerville';
|
||||||
|
src: url('/fonts/LibreBaskerville/LibreBaskerville-Bold.ttf') format('truetype');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Libre Baskerville';
|
||||||
|
src: url('/fonts/LibreBaskerville/LibreBaskerville-Regular.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Libre Baskerville';
|
||||||
|
src: url('/fonts/LibreBaskerville/LibreBaskerville-Italic.ttf') format('truetype');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* NotoSerifSC */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Noto Serif SC';
|
||||||
|
src: url('/fonts/NotoSerifSC-VariableFont_wght.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Outfit */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Outfit';
|
||||||
|
src: url('/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FiraCode */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Fira Code';
|
||||||
|
src: url('/fonts/FiraCode-VariablFont_wght.ttf') format('truetype');
|
||||||
|
}
|
@@ -1,17 +1,15 @@
|
|||||||
@import url("https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css");
|
@import url("./fonts.css");
|
||||||
@import url("https://s1.hdslb.com/bfs/static/jinkela/long/font/medium.css");
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Fira+Code:wght@300..700&family=Noto+Serif+SC:wght@200..900&family=Outfit:wght@100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
|
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
body {
|
body {
|
||||||
font-family: PingFang SC,HarmonyOS_Regular,Helvetica Neue,Microsoft YaHei,sans-serif !important;
|
font-family: PingFang SC,"Harmony",Helvetica Neue,Microsoft YaHei,sans-serif !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer components {
|
@layer components {
|
||||||
.hm-medium {
|
.hm-medium {
|
||||||
font-family: PingFang SC,HarmonyOS_Medium,Helvetica Neue,Microsoft YaHei,sans-serif !important;
|
font-family: PingFang SC,"Harmony",Helvetica Neue,Microsoft YaHei,sans-serif !important;
|
||||||
@apply font-bold;
|
@apply font-bold;
|
||||||
}
|
}
|
||||||
.font-ubuntu {
|
.font-ubuntu {
|
||||||
@@ -94,4 +92,4 @@ body {
|
|||||||
}
|
}
|
||||||
.ql-stroke {
|
.ql-stroke {
|
||||||
stroke: currentColor;
|
stroke: currentColor;
|
||||||
} */
|
} */
|
||||||
|
Reference in New Issue
Block a user