Skip to content

Instantly share code, notes, and snippets.

@davidofwatkins
Last active August 31, 2024 10:01
Show Gist options
  • Save davidofwatkins/338b01516ea24aafa05ac6d427dce782 to your computer and use it in GitHub Desktop.
Save davidofwatkins/338b01516ea24aafa05ac6d427dce782 to your computer and use it in GitHub Desktop.
Keep MacOS Fonts Updated with Google Fonts

Google Fonts suggests syncing fonts to your computer with a tool called SkyFonts. However, if you're running MacOS and want to keep your machine updated with all Google Fonts without any extra software, you can do this with Git, thanks to the Google Fonts Repo.

To do this, run the following in your terminal:

cd ~/Library/Fonts/
git clone --depth 1 https://github.com/google/fonts.git google-fonts

Done! In the future, you can download new fonts by running:

cd ~/Library/Fonts/google-fonts && git pull && cd -

To take this one step futher, you can add the same command to your crontab for regular automatic updates.

(Note: You can also do something like this on Windows, but as far as I'm aware, you need to actually install the fonts rather than downloading them to a fonts folder. So, after cloning the Google Fonts repo into a folder of your choosing, you would need to search for all *.ttf files and drag them into the Windows Fonts page in Control Panel.)

@kyleridolfo
Copy link

FYI the repo is almost 4GB as for Jul 2022

@aruke
Copy link

aruke commented Jan 5, 2023

For initial Git pull, git clone --depth 1 https://github.com/google/fonts.git is faster.

@davidofwatkins
Copy link
Author

For initial Git pull, git clone --depth 1 https://github.com/google/fonts.git is faster.

@aruke Great point! Updated ✅

@chudgar
Copy link

chudgar commented Oct 26, 2023

Thank you very much! I am not accustomed to the Terminal, and watching it do its thing made me feel like a hacker on TV

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