Beautify Chinese characters using Windows XP fonts under the Linux system

by 51ipw on 2008-04-18 05:05:45

When Windows XP is already mounted:

Copy the three font files:

```bash

mkdir -p /usr/share/fonts/zh_CN/TrueType/

sudo cp /media/hda1/windows/fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/

sudo cp /media/hda1/windows/fonts/SURSONG.TTF /usr/share/fonts/zh_CN/TrueType/

sudo cp /media/hda1/windows/fonts/tahoma.ttf /usr/share/fonts/zh_CN/TrueType/

sudo cp /media/hda1/windows/fonts/tahomabd.ttf /usr/share/fonts/zh_CN/TrueType/

sudo chmod 644 /usr/share/fonts/zh_CN/TrueType/*

cd /usr/share/fonts/zh_CN/TrueType/

sudo mkfontscale

sudo mkfontdir

```

Update the Linux font list:

```bash

sudo fc-cache /usr/share/fonts/zh_CN/TrueType/

```

Configure fonts by replacing `/etc/fonts/language-selector.conf`. Do not modify `/etc/fonts/fonts.conf`.

```bash

sudo gedit /etc/fonts/language-selector.conf

```

Modify it to:

```

serif:

Bitstream Vera Serif

SimSun

DejaVu Serif

AR PL ShanHeiSun Uni

AR PL ZenKai Uni

sans-serif:

Bitstream Vera Sans

SimSun

DejaVu Sans

AR PL ShanHeiSun Uni

AR PL ZenKai Uni

monospace:

Bitstream Vera Sans Mono

DejaVu Sans Mono

SimSun

Song

Sun

Kai

Ming

180

true

Song

Sun

Kai

Ming

false

0

true

false

true

18

false

SimSun

SimSun-18030

AR PL ShanHeiSun Uni

AR PL New Sung

MingLiU

PMingLiU

Tahoma

Verdana

宋体

SimSun

新宋体

SimSun

仿宋_GB2312

FangSong_GB2312

楷体_GB2312

KaiTi_GB2312

黑体

SimHei

```

Set font rendering to monochrome: System -> Preferences -> Fonts