拷贝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
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
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>SimSun</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>SimSun</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>DejaVu Sans Mono</family>
<family>SimSun</family>
</prefer>
</alias>
<match target=”font” >
<test name=”family” compare=”contains” >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test compare=”more_eq” target=”pattern” name=”weight” >
<int>180</int>
</test>
<edit mode=”assign” name=”embolden” >
<bool>true</bool>
</edit>
</match>
<match target=”font” >
<test name=”family” compare=”contains” >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<edit name=”globaladvance”>
<bool>false</bool>
</edit>
<edit name=”spacing”>
<int>0</int>
</edit>
<edit name=”hinting”>
<bool>true</bool>
</edit>
<edit name=”autohint”>
<bool>false</bool>
</edit>
<edit name=”antialias” mode=”assign”>
<bool>true</bool>
</edit>
<test name=”pixelsize” compare=”less_eq”>
<int>18</int>
</test>
<edit name=”antialias” mode=”assign” >
<bool>false</bool>
</edit>
</match>
<match target=”pattern”>
<test name=”family”>
<string>SimSun</string>
<string>SimSun-18030</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL New Sung</string>
<string>MingLiU</string>
<string>PMingLiU</string>
</test>
<edit binding=”strong” mode=”prepend” name=”family”>
<string>Tahoma</string>
<string>Verdana</string>
</edit>
</match>
<match target=”pattern”>
<test name=”family”><string>宋体</string></test>
<edit name=”family” mode=”assign”><string>SimSun</string></edit>
</match>
<match target=”pattern”>
<test name=”family”><string>新宋体</string></test>
<edit name=”family” mode=”assign”><string>SimSun</string></edit>
</match>
<match target=”pattern”>
<test name=”family”><string>仿宋_GB2312</string></test>
<edit name=”family” mode=”assign”><string>FangSong_GB2312</string></edit>
</match>
<match target=”pattern”>
<test name=”family”><string>楷体_GB2312</string></test>
<edit name=”family” mode=”assign”><string>KaiTi_GB2312</string></edit>
</match>
<match target=”pattern”>
<test name=”family”><string>黑体</string></test>
<edit name=”family” mode=”assign”><string>SimHei</string></edit>
</match>
</fontconfig>
- 设置字体渲染为单色 系统 –> 首选项 –> 字体
- attachment:Ubuntu_gnome_font.png
- 重启xwindows。