#字体 #swc #css #下载 #样式表 #远程 #用户代理

app swc-css-fonts-dl

下载样式表中引用的远程字体

3个版本

0.0.3 2024年3月8日
0.0.2 2024年3月8日
0.0.1 2024年3月8日

#5#样式表

Download history 303/week @ 2024-03-08 12/week @ 2024-03-15 4/week @ 2024-03-22 90/week @ 2024-03-29 2/week @ 2024-04-05 108/week @ 2024-06-07 13/week @ 2024-06-14

每月121次下载

MIT/Apache

24KB
422

swc-css-fonts-dl

下载样式表中引用的远程字体。由SWC提供支持。

cargo install swc-css-fonts-dl --git https://github.com/tonywu6/swc-css-fonts-dl
Usage: swc-css-fonts-dl [OPTIONS]

Options:
  -c, --config <FILE>              Path to a YAML config file; defaults to .swc-css-fonts-dl.config.yaml in the working directory
      --concurrency <CONCURRENCY>  Maximum number of concurrent downloads [default: 10]
  -h, --help                       Print help
out-dir: ./dist
sources:
  - from: https://rsms.me/inter/inter.css
    into: inter.css
  - from: https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;600;700;900&display=swap
    into: noto-sans-sc+variable.css
    # Google Fonts serves different stylesheets based on User-Agent capabilities
    user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

依赖项

~12–28MB
~406K SLoC