fix: bundle consistent fonts for share card rendering
This commit is contained in:
4
build.ts
4
build.ts
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user