Skip to content

Instantly share code, notes, and snippets.

@lightonphiri
Last active November 13, 2024 06:58
Show Gist options
  • Save lightonphiri/5811226a1fba0b3df3be73ff2d5b351c to your computer and use it in GitHub Desktop.
Save lightonphiri/5811226a1fba0b3df3be73ff2d5b351c to your computer and use it in GitHub Desktop.
Install Google Fonts on Ubuntu

Install Google Fonts

Download desired fonts

https://fonts.google.com/?selection.family=Open+Sans

Install Google Fonts on Ubuntu

cd /usr/share/fonts
sudo mkdir googlefonts
cd googlefonts
sudo unzip -d . ~/Downloads/Open_Sans.zip
sudo chmod -R --reference=/usr/share/fonts/opentype /usr/share/fonts/googlefonts

Register fonts

sudo fc-cache -fv

Check if font installed

fc-match OpenSans

Bibliography

http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux
http://ubuntuhandbook.org/index.php/2016/05/manually-install-fonts-ubuntu-16-04

@lusdavo
Copy link

lusdavo commented Sep 5, 2024

This works all the time, thanks a lot.

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