歡迎您光臨本站 註冊首頁

使用xp帶的字體來進行中文美化

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

請參閱 關於Ubuntu自動掛載Windows分區拷貝3個字體文件(simsun.ttc SURSONG.TTF tahoma.ttf)到/usr/share/fonts/zh_CN/TrueType/ 目錄, 命令:

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。

gksu 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


設置字體渲染為單色 系統 --> 首選項 --> 字體



重啟xwindows。

[火星人 ] 使用xp帶的字體來進行中文美化已經有366次圍觀

http://coctec.com/docs/linux/show-post-129404.html