cn-font-split 7.2.1

划时代的字体切割工具,CJK与任何字符!支持 otf、ttf、woff2 字体多线程切割,完美地细颗粒度地进行包大小控制。A revolutionary font subetter that supports CJK and any characters! It enables multi-threaded subset of otf, ttf, and woff2 fonts, allowing for precise control over package size.
Documentation
[build]
build-std = false # do not build the std library. has precedence over xargo
xargo = false     # enable the use of xargo by default
zig = false       # do not use zig cc for the builds
context = "."     # the context folder to build the script in. defaults to `.`

[build.env]
passthrough = ["HARFBUZZ_SYS_NO_PKG_CONFIG"]

[target.aarch64-unknown-linux-gnu]
pre-build = [
    "apt update && apt install -y llvm clang pkg-config libssl-dev",
]

[target.x86_64-unknown-linux-gnu]
pre-build = [
    "apt update && apt install -y llvm clang pkg-config libssl-dev",
]

[target.x86_64-unknown-linux-musl]
pre-build = [
    "apt update && apt install -y llvm clang pkg-config libssl-dev",
]

[target.aarch64-unknown-linux-musl]
pre-build = [
    "apt update && apt install -y llvm clang pkg-config libssl-dev",
]

[target.riscv64gc-unknown-linux-gnu]
pre-build = [
    "apt update && apt install -y llvm clang pkg-config libssl-dev",
]

[target.x86_64-pc-windows-msvc]
pre-build = [
    "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser",
    "Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression",
    "scoop install main/llvm",
    "scoop install main/mingw",
    "scoop install main/clangd"
]
[target.x86_64-pc-windows-gnu]
pre-build = [
    "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser",
    "Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression",
    "scoop install main/llvm",
    "scoop install main/mingw",
    "scoop install main/clangd"
]

[target.x86_64-apple-darwin]
pre-build = []