Linux與Windows XP雙系統,在Windows XP已掛載的情況下:
拷貝三個字體文件
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
更新Linux字體列表
sudo fc-cache /usr/share/fonts/zh_CN/TrueType/
通過替換/etc/fonts/language-selector.conf來配置字體,不要更改/etc/fonts/fonts.conf。
sudo gedit /etc/fonts/language-selector.conf
修改為:
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
設置字體渲染為單色:系統->首選項->字體