I know how do install new fonts using Font Book.

Is there also a way to install fonts from the terminal, using some smart shell command?

  • You could also make Automator Service: Get selected finder items > Move finder items ( to the fonts folder ). This way you could select fonts in Finder and either find the correct Service from the right click context menu or use a hotkey you've given the Service at: Preferences > Keyboard > Shortcuts > Services. Of course if you really want to do it via Terminal, that's another thing. – Joonas Jun 2 '16 at 9:26

You can simply copy them into /Library/Fonts (for system wide use) or ~/Library/Fonts (for use by current user).

  • Awesome, I even noticed the font shows up in 3rd party software (e.g. photoshop) immediately. Thanks! – RocketNuts Jun 2 '16 at 9:21
  • @RocketNuts it should, because this is pretty much identical to what FontBook does. – Riker Jun 2 '16 at 14:58
  • This answer does not use the terminal, I've provided an answer below that installs fonts in one line with the terminal. – jlansey Apr 9 '18 at 11:12

Install fonts with the following terminal command (replace BRLNSR with your font):

cd ~/Library/Fonts && { curl -O 'https://github.com/FrankHassanabad/ResumeBuilder/blob/master/fonts/src/main/resources/frankhassanabad/com/github/windowsfonts/BRLNSR.TTF' ; cd -; }

This code does the following:

  1. cd into the fonts directory
  2. curl downloads the font
  3. pops back to the original directory

This relies on the very nice fonts github repo from Frank Hassanabad with a bunch of fonts stored - but you could change the curl url to wherever the font you want is located online.

The clever way the cd into a directory, download and pop out again came from user Atle's answer here.

  • The link to the repo is broken. Do you happen to have an updated link? – Leo Nov 2 '18 at 0:55
  • Hey unfortunately I don't - too bad I guess this answer doesn't work anymore. – jlansey Nov 7 '18 at 0:35
  • i didn't know cd-; can bring you to the previous directory, +1 for that – Pezhvak Nov 11 '18 at 20:27
  • Hey people - I updated the link to the font repo so this answer should work completely again! – jlansey Nov 17 '18 at 20:48

By manually copying to a fonts folder used to be the only way to install fonts before Font Book was introduced. (barring 3rd party sw)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .