fix: bundle consistent fonts for share card rendering

This commit is contained in:
syntaxbullet
2026-09-07 11:57:23 +02:00
parent e6002ad619
commit 1721ee469d
12 changed files with 245 additions and 10 deletions

View File

@@ -27,4 +27,6 @@ for (const output of result.outputs) {
}
await mkdir(path.join(outdir, "fonts"), { recursive: true });
await copyFile("src/assets/fonts/InstrumentSerif-Regular.ttf", path.join(outdir, "fonts/InstrumentSerif-Regular.ttf"));
for (const file of ["InstrumentSerif-Regular.ttf", "NotoSans-Regular.ttf", "NotoSans-Medium.ttf", "NotoSans-SemiBold.ttf"]) {
await copyFile(`src/assets/fonts/${file}`, path.join(outdir, "fonts", file));
}