Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install .ttf font using command line

On OS X you can install .ttf font files by double clicking them. This is a hassle when dealing with multiple files. Is there a command to install font files using the Terminal app ?

like image 827
Something Else Avatar asked Nov 23 '15 10:11

Something Else


People also ask

How do I install a TTF font?

If the font files are zipped, unzip them by right-clicking the .zip folder and then clicking Extract. Now you'll see the available TrueType and OpenType font files: Right-click the fonts you want, and click Install.

How do I install TTF fonts in Linux?

Double-click on that new folder to open it and you should see the TTF file or files. Double-click one of the TTF files to open the font viewer. You should see an Install button in the top right corner. Click that button, and the font will automatically install and will be accessible to the desktop apps.

How do I add fonts to command prompt?

Command Prompt doesn't allow you to add fonts via the user interface. You have to manually add them via the Registry Editor. 2. On the right-panel you will see a list of fonts like Consolas and Lucida Console that are currently listed in the Command Prompt.


1 Answers

You could copy the fonts using

cp myfont.ttf /Library/Fonts/

or multiple files

cp fontsFolder/*.ttf /Library/Fonts/
like image 89
Nirmi Avatar answered Oct 15 '22 18:10

Nirmi