A pip tool to help to download google fonts into your computer.
pip install google-fonts
google-fonts --help # For help
The .env
file will be stored in ~/.config/google_fonts/.env
(MacOS)
google-fonts config --token your_github_token # Setting github token
google-fonts list
# If you don't want set your token for long time
# Using the following configuration
google-fonts list --token your_github_token # Use github token specifically for once
google-fonts install font1 font2 ...
# If you don't want set your token for long time
# Using the following configuration
google-fonts install font1 font2 ... --token your_github_token
There are some font name that can not find in api.github.com
.
For example: notosanssc
You can use --force
with specific font name to download.
The font name can be found in github/google/fonts
google-fonts install notosanssc notosanstc --force
poetry config pypi-token.pypi