Skip to content

Instantly share code, notes, and snippets.

@ten0s
Last active April 19, 2016 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ten0s/ea19610f94ae1f1803e8 to your computer and use it in GitHub Desktop.
Save ten0s/ea19610f94ae1f1803e8 to your computer and use it in GitHub Desktop.
Install Google Fonts (https://www.google.com/fonts) into Linux
$ fc-match "open sans"
DejaVuSans.ttf: "DejaVu Sans" "Book"
$ mkdir -p ~/.fonts
$ cd ~/.fonts
# download google fonts downloader, make it executable
$ wget https://raw.githubusercontent.com/neverpanic/google-font-download/master/google-font-download
$ chmod +x google-font-download
$ ./google-font-download "Open Sans:400"
Downloading Open Sans:400...eot woff woff2 svg ttf
$ fc-cache
$ fc-match "open sans"
Open_Sans_400.ttf: "Open Sans" "Regular"
@ten0s
Copy link
Author

ten0s commented Apr 7, 2016

For development add fonts config file like:

$ cat ~/.config/fontconfig/conf.d/00-APP-fonts.conf
`

~/projects/APP/fonts `

@ten0s
Copy link
Author

ten0s commented Apr 19, 2016

FC_DEBUG=1 fc-match "open sans"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment