feat: NDS9 -> NDS10 and use woff2 fonts

This commit is contained in:
2025-11-13 07:58:51 +01:00
parent 5e95be1307
commit 0bca11dfe0
6 changed files with 4 additions and 4 deletions

View File

@@ -1,13 +1,13 @@
@font-face { @font-face {
font-family: "NDS7"; font-family: "NDS7";
src: url("/assets/fonts/nds-7px.ttf") format("truetype"); src: url("/assets/fonts/nds-7px.woff2") format("woff2");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: "NDS9"; font-family: "NDS10";
src: url("/assets/fonts/nds-9px.ttf") format("truetype"); src: url("/assets/fonts/nds-10px.woff2") format("woff2");
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -55,7 +55,7 @@ useRender((ctx) => {
} }
ctx.fillStyle = "black"; ctx.fillStyle = "black";
ctx.font = "10px NDS9"; ctx.font = "10px NDS10";
ctx.letterSpacing = "2px"; ctx.letterSpacing = "2px";
const timeText = `${month}/${year}`; const timeText = `${month}/${year}`;