BOSS/GNU LINUX searches for fonts in specific locations as listed in the /etc/fonts/fonts.conf file.
A look at the contents of /etc/fonts/fonts.conf file indicates the following directories which are searched by Ubuntu Linux for fonts. They are :
1. /usr/share/fonts
2. /usr/share/X11/fonts
3. /usr/local/share/fonts
4. ~/.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 ~/.fonts is 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 root user.
What the fc-cache command 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.
This method of installing fonts works not just for Ubuntu or Debian Linux but probably for all other Linux distributions.
Subscribe to:
Post Comments (Atom)
Linux Kernel Compilation
Step 1: Install Required Packages Install additional packages before building a kernel. To do so, run this command: sudo apt-get install gi...
-
Step:1 sudo apt-get install python-pip Step:2 pip install -U selenium for python3 and more install Step:1 sudo apt-get...
-
This process will common for all HP Printers like HP LJ P 1007, P1020,P1020 plus,1022,3050 MFP, M 5035 MFP,P 2015N and Configuring the HP ...
-
Global Parameters [global] Anything in here applies to Samba as a global setting. There is some configuration info here ...
No comments:
Post a Comment