29

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?

42

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

| improve this answer | |
5

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.

| improve this answer | |
1

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)

| improve this answer | |

You must log in to answer this question.

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