17 November 2008

Ubuntu: How to Install Fonts?

How to install some common fonts?

There are a number of very common fonts, which can be installed through APT/Synaptic, including the Microsoft TrueType core fonts (e.g. Arial Black, Times New Roman).

Before installing, make sure the extra repositories are enabled.
Then in the terminal window, type:
# sudo apt-get install msttcorefonts texlive-fonts-extra
How to install other fonts for a single user?

You can also use many other fonts, like those downloaded from dafont.com. There are two options when installing: one to install them for a Single User, this means that only this user can use them, or installing them for System Wide use, so that every user on the system can use the fonts.

Create ~/.fonts directory:
$ mkdir ~/.fonts
Copy the font files to the .font directory:
$ cp *.ttf ~/.fonts
$ cp *.TTF ~/.fonts
Now we need tell the system about the new fonts:
$ fc-cache -f -v ~/.fonts
How to install other fonts for system wide use?

Move the fonts to the font directory:
$ sudo cp *.ttf /usr/local/share/fonts/
$ sudo cp *.TTF /usr/local/share/fonts/
Run the following command to rebuild the font cache:
$ sudo fc-cache -f -v
Done!

Original post at GeekyBits³

0 comments: