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?
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 can simply copy them into /Library/Fonts (for system wide use) or ~/Library/Fonts (for use by current user).
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:
cd into the fonts directorycurl downloads the fontThis 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.
Add this to your startup file (e.g. ~/.zshrc):
alias fontbook="open -b com.apple.FontBook"
Then, in a new Terminal, you can execute:
fontbook *.otf
~/Library/Fontsworks for me in 14.1 (currently in beta) as it always has. – user137369 Oct 24 '23 at 15:44~/Library/Fontsdoes not show up in fonts selection anywhere, nor in the "Font Book" app. Using macOS 13.6 (Ventura). Any steps to refresh or make them visible (preferably via Terminal, of course)? – LosAlamos Oct 26 '23 at 10:54