https://github.com/desonglll/google-fonts
A pip tool to help to download google fonts into your computer.
https://github.com/desonglll/google-fonts
fonts google pip python
Last synced: about 2 months ago
JSON representation
A pip tool to help to download google fonts into your computer.
- Host: GitHub
- URL: https://github.com/desonglll/google-fonts
- Owner: desonglll
- Created: 2024-11-25T13:47:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-07T06:17:12.000Z (over 1 year ago)
- Last Synced: 2025-06-19T16:54:48.581Z (about 1 year ago)
- Topics: fonts, google, pip, python
- Language: Python
- Homepage: https://pypi.org/project/google-fonts/
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## google-fonts
A pip tool to help to download google fonts into your computer.
## Installation
```shell
pip install google-fonts
```
## Usage
### Help
```shell
google-fonts --help # For help
```
### GitHub Token Configuration
The `.env` file will be stored in `~/.config/google_fonts/.env` (MacOS)
```shell
google-fonts config --token your_github_token # Setting github token
```
### List fonts
```shell
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
```
### Install fonts
```shell
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
```
## Advanced
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`](https://github.com/google/fonts/tree/main/ofl)
```shell
google-fonts install notosanssc notosanstc --force
```
## Deploy
```shell
poetry config pypi-token.pypi
```