base project
This commit is contained in:
parent
79f300a918
commit
4fedd38df1
33 changed files with 407 additions and 2514 deletions
BIN
public/font/Black.woff2
Normal file
BIN
public/font/Black.woff2
Normal file
Binary file not shown.
BIN
public/font/BlackItalic.woff2
Normal file
BIN
public/font/BlackItalic.woff2
Normal file
Binary file not shown.
BIN
public/font/Bold.woff2
Normal file
BIN
public/font/Bold.woff2
Normal file
Binary file not shown.
BIN
public/font/BoldItalic.woff2
Normal file
BIN
public/font/BoldItalic.woff2
Normal file
Binary file not shown.
BIN
public/font/Book.woff2
Normal file
BIN
public/font/Book.woff2
Normal file
Binary file not shown.
BIN
public/font/BookItalic.woff2
Normal file
BIN
public/font/BookItalic.woff2
Normal file
Binary file not shown.
BIN
public/font/Medium.woff2
Normal file
BIN
public/font/Medium.woff2
Normal file
Binary file not shown.
BIN
public/font/MediumItalic.woff2
Normal file
BIN
public/font/MediumItalic.woff2
Normal file
Binary file not shown.
17
public/font/rename.ts
Normal file
17
public/font/rename.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { Glob } from "bun";
|
||||
|
||||
const woff2 = new Glob("./*.woff2");
|
||||
|
||||
for await (const file of woff2.scan(".")) {
|
||||
const font = Bun.file(file);
|
||||
|
||||
const name = font.name?.split("-")[1];
|
||||
|
||||
await Bun.write(`./${name}`, await font.arrayBuffer());
|
||||
console.log(`Renamed ${file} to ${name}`);
|
||||
|
||||
await font.delete();
|
||||
console.log(`Deleted original font file: ${file}`);
|
||||
}
|
||||
|
||||
console.log("Done")
|
Loading…
Add table
Add a link
Reference in a new issue