add variable woff2 build

This commit is contained in:
subframe7536 2024-08-24 20:42:30 +08:00
parent d8fdd66fd8
commit 588bd85ecc
5 changed files with 8 additions and 15 deletions

View file

@ -70,6 +70,12 @@ You can change build config in `config.json`
2. put them into `./source/cn`
3. run `build.py` and **BE PATIENT**, instantiation will take about 30 minutes
### Release Build
```sh
python build.py --release
```
## credit
- [Jetbrains Mono](https://github.com/JetBrains/JetBrainsMono)

View file

@ -675,6 +675,8 @@ def main():
shutil.copytree(output_woff2, "woff2")
print("copy woff2 to root")
run(f"ftcli converter ft2wf -out woff2/var -f woff2 {output_variable}")
print(f"=== [Build Success ({time.time() - start_time:.2f} s)] ===")

View file

@ -1,15 +0,0 @@
import subprocess
subprocess.run(["python", "build.py", "--release"])
subprocess.run(
[
"ftcli",
"converter",
"ft2wf",
"-out",
"./website/public/fonts/",
"-f",
"woff2",
"./fonts/variable/",
]
)

Binary file not shown.

Binary file not shown.