Skip to content

ZSFT CLI ​

ZSFT CLI 是 ZSFT 所使用的命令行工具,通过快速简单的命令来对字体文件进行子集化、转换和拆分,为 Web 优化。

依靠 fonttools 的 Node.js 适配器 @web-alchemy/fonttools 和 cn-font-split ,ZSFT CLI 有着无与伦比的兼容性和效率。完美支持 TTF / OTF / WOFF / WOFF2。

ZSFT CLI 只是一个结合了 fonttools 和 cn-font-split 的外壳,遵循约定大于配置,以便快速的、批量的执行。

安装 ​

使用 ZSFT CLI 之前,需要先安装 Node.js。

bash
npm install -g zsft

开始 ​

获取帮助 ​

bash
zsft -h
bash
zsft split -h