GFonts-Helper 是一个下载并压缩 Google Fonts 的工具。
1. 安装
pnpm add gfonts-helper -g2. 使用
gfonts-helper <source> <group><source> 是一个 Google Fonts 的链接。
<group> 是分组下载的每组数量,因为一次下载可能最后会卡住,默认为 20。
e.g.
gfonts-helper "https://fonts.googleapis.com/css2?family=Roboto&display=swap"
gfonts-helper "https://fonts.loli.net/css2?family=Roboto&display=swap"
gfonts-helper "https://fonts.geekzu.org/css2?family=Roboto&display=swap"运行完生成 fonts.min.css 一个文件,和 fonts 一个文件夹。
