2.2.2. Installing using individual font file
If you cannot or do not want to use the rpm package, there is always the good old
tgz packages. Remember that you should have root privilege when you execute the commands
mentioned here.
Download the files you want to install from
http://savannah.nongnu.org/files/?group=freebangfont.
| Remember that you will find several different tgz packages in
FBFP. Each of them contain different font faces, i.e. they all look
different from one another. |
Once you have downloaded all the packages you want, extract all the
*.ttf file(s). Basically run the following command on each
*.tgz or *.tar.gz you have downloaded.
bash$ tar -zxvf your_font_package.tar.gz
This will create a new directory that will contain different files that comes
with the font package. We are only interested about the *.ttf files.
Create a new directory where you want to install these fonts. For the rest of
this document, we will assume we are installing the fonts in
/usr/X11R6/lib/X11/fonts/bengali/
Copy the *.ttf files we just extracted in to this directory,
and execute the following commands:
bash$ cd /usr/X11R6/lib/X11/fonts/bengali
bash$ ttmkfdir
bash$ mkfontdir
bash$
chkfontpath -q -a /usr/X11R6/lib/X11/fonts/bengali
Now we will add the new directory to fontconfig
configuration. Usually this configuration file is /etc/fonts/fonts.conf.
Open this file with you choice of text editor and look for the part that looks somewhat like
shown below
<dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
<dir>/usr/share/fonts</dir>
<dir>~/.fonts</dir>
|
Add the line
<dir>/usr/X11R6/lib/X11/fonts/bengali</dir> |
so that
now it looks something like this:
<dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts/bengali</dir>
<dir>~/.fonts</dir>
|
After you have saved the file, execute the following command:
bash$ fc-cache
If you have GNOME print library (
libgnomeprint) installed, then execute the following
commands:
bash$ cd /usr/X11R6/lib/X11/fonts/bengali
bash$ libgnomeprint-2.0-font-install --dynamic
That should be it! If you have any problem, please let us know at
<users@bengalinux.org>