Wednesday, May 5, 2010

Install new fonts in Ubuntu 9.04

If you have downloaded fonts from the web, purchased them, or acquired them from other sources and want to install these fonts in your Ubuntu 9.04 Jaunty Jackalope box, then there is an easy manual process to do this.

There are various locations in GNU/Linux in which fonts can be kept. These locations are defined in /etc/fonts/fonts.conf . Check your fonts.conf file and most probably you will find these type of entries there:

<dir>/usr/share/fonts</dir>
<dir>/usr/share/X11/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>

The last entry means .fonts direcotry in the user's home directory.

If you want to make the new fonts available for only one user, then copy those new fonts to the .fonts directory of that user. If .fonts directory is not there, create one first.

If you want to make the new fonts available for all users, then the best place to copy those fonts is to ...say..../usr/share/fonts

Now open a console and run this:
sudo fc-cache -f -v
That's it. There are other ways to install new fonts. But this one is quite good to live with :)

No comments: