-
How to install fonts in Linux – Ubuntu, Debian
Posted on July 20th, 2009 No commentsUbuntu Linux searches for fonts in specific locations as listed in the
/etc/fonts/fonts.conffile.A look at the contents of
/etc/fonts/fonts.conffile indicates the following directories which are searched by Ubuntu Linux for fonts. They are :/usr/share/fonts/usr/share/X11/fonts/usr/local/share/fonts~/.fonts
So if you want to install new fonts in Ubuntu Linux or Debian for that matter, you can copy the fonts to any one of the 4 directories listed above.
The last directory
~/.fontsis a local hidden directory in every user’s Home folder. If you install the new fonts in this directory, the fonts will be available only for the person logged into that particular user account.If you want your new fonts to be available system wide, to all users, then you should install them in any one of the first three directories listed above.
Once all your fonts are copied to the specific font directories, you have to make Ubuntu Linux aware of the new fonts so that it can make use of them. This is done by running the following command in the console :
$ sudo fc-cache -f -v
Please note that you have to have super user powers to run this command. In Debian Linux, it means you have to be logged in as
rootuser.What the
fc-cachecommand does is, it reads and caches all the fonts installed in the font directories. You have to run this command each time you install any new fonts in Linux.Reference : Ubuntu Wiki
This method of installing fonts works not just for Ubuntu or Debian Linux but probably for all other Linux distributions.
Related Posts
- Install LaTeX in Ubuntu Linux
- How To Install LAMP Server in Ubuntu Linux
- How to install GIMP scripts in Ubuntu Linux
- Arch Linux – How to install packages from AUR
- How to – Add a new user in Ubuntu Linux
