How To Set Font And Print Vietnamese On Linux

How To Set Font And Print Vietnamese On Linux

There are two ways to install Unicode fonts for X Window.
1. Use ttmkfdir (old way)
2. Using fontconfig (new way for Mandrake-9.0, RedHat-8.0)

Update: Currently the software is no longer supported by the author, please refer to:

1. Use ttmkfdir (old way):

a. Create / usr / share / fonts, if not already, by command:
mkdir / usr / share / fonts

b. Open utf8.tar.gz in / usr / share / fonts using the command:
cd / usr / share / fonts & amp; tar xvzf utf8.tar.gz

c. Create a list of fonts using:
cd utf8 & amp; amp; ttmkfdir & gt; fonts.scale & amp; amp; amp; mkfontdir

d. Tell the fonts server to know the location of the Unicode fonts with the command:
chkfontpath --add / usr / share / fonts / utf8

e. Restart the X font server by command:
/etc/rc.d/init.d/xfs restart

2. Use fontconfig (new way for Mandrake-9.0, RedHat-8.0):

a. Quit utf8.tar.gz / usr / share / fonts and open it with the command:
cp utf8.tar.gz / usr / share / fonts & amp; cd / usr / share / fonts & amp; tar xvzf utf8.tar.gz

b. Update the fonts list using:
fc-cache

Just do not need to restart xfs or X.

You can also drop the arial font in ~ / .fonts and not restart anything if you use fontconfig (Red Hat 8 or 9 or Mandrake-9.1).

For example:

cd ~

mkdir ~ / .fonts (if not already)

tar xvjf arial.tar.bz2

cp arialuni.ttf ~ / .fonts

View Vietnamese website and how to print Vietnamese:

Normally, if you view a web page using Mozilla, you do not need to set the font. If you're using Konqueror on Red Hat 8.0 then you have to set the fonts in Konqueror as shown at http://www.inlinux.org/images/konqueror1.jpg then and be Vietnamese.

If you are using the latest version of Mandrake (9.1) you will not need to do anything. Displaying and printing Vietnamese is very well supported.

More details:

.Unicode fonts: can be downloaded from http://www.vnlinux.org/fonts/utf8.tar.gz or http://www.vnlinux.org/arial.tar.bz2 if you have not already done so. 100%
.fontconfig homepage at http://www.fontconfig.org.
.ttmkfdir can be downloaded from http://www.joerg-pommnitz.de/TrueType/xfsft.html.
.mkfontdir is in the XFree86-3x package (or XFree86-4x)
. Unic Unicode has many fonts http://sourceforge.net/project/showfiles.php?group_id=41991&release_id=132517