https://github.com/lil5/google-font-localizer
Downloads Fonts of Google fonts and adapts to local use
https://github.com/lil5/google-font-localizer
fonts google-fonts
Last synced: 3 months ago
JSON representation
Downloads Fonts of Google fonts and adapts to local use
- Host: GitHub
- URL: https://github.com/lil5/google-font-localizer
- Owner: lil5
- License: mpl-2.0
- Created: 2022-11-04T16:10:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T16:26:07.000Z (over 2 years ago)
- Last Synced: 2024-12-26T18:16:37.297Z (5 months ago)
- Topics: fonts, google-fonts
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Font Localizer
## Usage
1. Retrieve a google fonts css file
- From google fonts website
1. Go to https://fonts.google.com/ and select your font.
2. Under the **Selected famities** sidenav, find the text aria with HTML code.
3. Copy the url that begins with `https://fonts.googleapis.com/css2?family...` to your *clipboard*.
- Or from another website
1. Right click and inspect element.
2. Look for this element`` under the ``
3. Copy the url that begins with `https://fonts.googleapis.com/css2?family...` to your *clipboard*.
2. Save css file
1. Create a directory for the fonts to live in.
e.g.: `mkdir -p fonts/roboto`
2. Create the `style.css` file there and paste the contents of your *clipboard* in there.
3. Run the binary `google-font-localizer` in the terminal in that directory.