Go module
Remove separator arg from URLs, separate path and filename
Add commands
Go bindings for the Google Fonts Developer API.
This command downloads fonts from the API.
Usage of gfonts:
-c concurrent downloads mode
-category value
set the category to filter for, can be passed multiple times
-flat
use a flat file structure
-j int
number of threads to use for downloading (default 64)
-key string
API key for google fonts (required)
-n int
number of font families to download, n <= -1 means unlimited (default 1)
-sort string
sorting mode, valid values are alpha, date, popularity, style, trending. (default "popularity")
-style value
set the style to filter for, can be passed multiple times
-subset value
set the subset to filter for, can be passed multiple times
-t int
max attempts to try downloading every file (default 3)
This command gets and shows a response from the API/tool
Usage of gfonts-analyzer:
-category value
set the category to filter for, can be passed multiple times
-dedup
deduplicate results
-key string
API key
-n int
number of font families to download, n < 0 means unlimited (default -1)
-sort
sort results
-sortmode string
sort mode, one of alpha, date, popularity, style, trending
-style value
set the style to filter for, can be passed multiple times
-subset value
set the subset to filter for, can be passed multiple times
This command gets a response from the API and will find the closest font that matches the given query.
Usage of gfonts-match:
-b value
bags of n-grams, can pass more than one (default "2,3,4")
-k string
API key
-n int
number of outputs to print in verbose mode (default 8)
-v verbose output