Skip to content

This tool allows you to download all fonts from fontsource.org

License

Notifications You must be signed in to change notification settings

ZerGo0/fontsourcedownloader

Repository files navigation

FontsourceDownloader

This tool allows you to download all fonts from Fountsource to your desired location using jsdelivr to download them.

Installation

go install github.com/zergo0/fontsourcedownloader/@latest

Usage

fontsourcedownloader -out /path/to/output

Possible arguments:

  • -out - output path (ex: /path/to/output)
  • -formats - comma separated list of formats to download (ex: woff2,woff)
  • -weights - comma separated list of weights to download (ex: 400,700)
  • -styles - comma separated list of styles to download (ex: normal,italic)
  • -subsets - comma separated list of subsets to download (ex: latin,latin-ext)

Development

The project uses make to make your life easier. If you're not familiar with Makefiles you can take a look at this quickstart guide.

Whenever you need help regarding the available actions, just use the following command.

make help

Setup

To get your setup up and running the only thing you have to do is

make all

This will initialize a git repo, download the dependencies in the latest versions and install all needed tools. If needed code generation will be triggered in this target as well.

Run

To run the application you can use the following command

make run ARGS="-out /path/to/output"

You can find all possible arguments above.

Test & lint

Run linting

make lint

Run tests

make test

Made with GoTemplate