- Retrieve a google fonts css file
- From google fonts website
- Go to https://fonts.google.com/ and select your font.
- Under the Selected famities sidenav, find the text aria with HTML code.
- Copy the url that begins with
https://fonts.googleapis.com/css2?family...
to your clipboard.
- Or from another website
- Right click and inspect element.
- Look for this element
<link href="https://fonts.googleapis.com/css2?family=..." rel="stylesheet">
under the<head>
- Copy the url that begins with
https://fonts.googleapis.com/css2?family...
to your clipboard.
- From google fonts website
- Save css file
- Create a directory for the fonts to live in.
e.g.:
mkdir -p fonts/roboto
- Create the
style.css
file there and paste the contents of your clipboard in there.
- Create a directory for the fonts to live in.
e.g.:
- Run the binary
google-font-localizer
in the terminal in that directory.
-
Notifications
You must be signed in to change notification settings - Fork 0
Downloads Fonts of Google fonts and adapts to local use
License
lil5/google-font-localizer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Downloads Fonts of Google fonts and adapts to local use