Install TTF Fonts from command line

Aus Bitbull Wiki
Wechseln zu: Navigation, Suche

this is a short way to add a huge amount of fonts to a linux system.
tested on ubuntu 10.04

where are the fonts?

egrep '<dir>.*</dir>' /etc/fonts/fonts.conf 
	<dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/usr/local/share/fonts</dir>

we use the /usr/local/share/fonts dir. its the best place for private fonts

copy all your fonts into one directory

mkdir /tmp/myfonts
cp all_my_fonts.ttf /tmp/myfonts/

copy the fonts into the system

sudo mkdir -p /usr/share/fonts/myfonts
sudo cp -r /tmp/myfonts/* /usr/share/fonts/myfonts/

activate the fonts

sudo fc-cache -f -v | grep myfonts

its done!