add variable woff2 build
This commit is contained in:
parent
d8fdd66fd8
commit
588bd85ecc
5 changed files with 8 additions and 15 deletions
|
@ -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)
|
||||
|
|
2
build.py
2
build.py
|
@ -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)] ===")
|
||||
|
||||
|
||||
|
|
15
release.py
15
release.py
|
@ -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/",
|
||||
]
|
||||
)
|
BIN
woff2/var/MapleMono-Italic[wght]-VF.woff2
Normal file
BIN
woff2/var/MapleMono-Italic[wght]-VF.woff2
Normal file
Binary file not shown.
BIN
woff2/var/MapleMono[wght]-VF.woff2
Normal file
BIN
woff2/var/MapleMono[wght]-VF.woff2
Normal file
Binary file not shown.
Loading…
Reference in a new issue