Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vdustr/gwf
A Google web font downloader
https://github.com/vdustr/gwf
css deno font google ts typescript unicode-range web-font web-fonts
Last synced: 11 days ago
JSON representation
A Google web font downloader
- Host: GitHub
- URL: https://github.com/vdustr/gwf
- Owner: VdustR
- License: mit
- Created: 2021-04-24T09:18:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-25T15:50:09.000Z (almost 4 years ago)
- Last Synced: 2025-01-19T19:03:26.410Z (17 days ago)
- Topics: css, deno, font, google, ts, typescript, unicode-range, web-font, web-fonts
- Language: TypeScript
- Homepage: https://deno.land/x/gwf
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gwf
A Google web font downloader.
Now you can download them for self-hosted.
## Requirement
[[email protected]](https://deno.land/)
## Install
```sh
deno install \
--unstable \
--allow-net \
--allow-read \
--allow-write \
-n gwf \
https://deno.land/x/gwf/mod.ts
```## Usage
Select fonts in [Google Fonts](https://fonts.google.com/) and copy the CSS URL from "Use on the web" block.
Execute the command to download the fonts and css to current directory:
```sh
gwf d "https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+TC:wght@400;700&display=swap"
```You can also download them to a specific dir:
```sh
gwf d "https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+TC:wght@400;700&display=swap" \
-o relative/from/current/dirgwf d "https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+TC:wght@400;700&display=swap" \
-o /absolute/from/root
```More options:
```sh
gwf d -h
```## Dev
Run with [Deno@^1.9.2](https://deno.land/)
```sh
deno run \
--unstable \
--allow-net \
--allow-read \
--allow-write \
mod.ts d "https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+TC:wght@400;700&display=swap"
```## License
MIT