1. Add Chinese language support:
sudo apt-get install language-pack-zh language-support-zh language-pack-gnome-zh
2. Install Arphic fonts:
sudo apt-get install ttf-arphic-uming ttf-arphic-ukai ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-bsmi00lp ttf-arphic-bkai00mp
3. Make a file named local.fonts in /etc/fonts/
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>
<!-- Enable sub-pixel rendering
<match target="font">
<test qual="all" name="rgba">
<const>unknown</const>
</test>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
-->
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL SungtiL</family>
<family>AR PL KaitiM GB</family>
<family>AR PL Mingti2L Big5</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL SungtiL</family>
<family>AR PL KaitiM GB</family>
<family>AR PL Mingti2L Big5</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL SungtiL</family>
<family>AR PL KaitiM GB</family>
<family>AR PL Mingti2L Big5</family>
</prefer>
</alias>
</fontconfig>
4. Restart computer.
3/02/2008
An easy way to add Chinese language support for Ubuntu 7.10 English local
Labels:
Tao of Programming
Subscribe to:
Posts (Atom)