升级之后,英文字体,中文字体感觉比windows 还爽,以后编程可很high了。
总结一下升级的步骤:
1 下载 Lucida Grande 和 STHeiti 这两种字体,下载地址分别是
下载Lucida Grande 和
下载STHeiti2 解压后复制到 /usr/share/fonts/truetype 下面。 分别设置三个ttf文件的可读权限: sudo chmod a+r /usr/fonts/truetype/stheiti.ttf
3 sudo gedit /etc/fonts/conf.d/69-language-selector-zh-cn.conf, 编辑如下所示:
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>STHeiti</string> /*此处是新添加的*/
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>Bitstream Vera Serif</string>
<string>DejaVu Serif</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Bitstream Vera Sans</string>
<string>DejaVu Sans</string>
<string>STHeiti</string> /*此处是新添加的*/
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Bitstream Vera Sans Mono</string>
<string>DejaVu Sans Mono</string>
<string>STHeiti</string> /*此处是新添加的*/
<string>WenQuanYi Zen Hei</string>
<string>AR PL UMing CN</string>
<string>AR PL ShanHeiSun Uni</string>
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
</edit>
</match>
</fontconfig>
4 然后,刷新字体缓存: sudo fc-cache -f -v
5 设置system -> preference -> appearance 可以选择 新的字体了。
6 重启一下 X,就可以enjoy 新的字体。
p.s.
firefox 对于新的字体 看起来太cool,大有赶超 mac 之势啊 。。。。^_^