满意答案
Linux的中文都很难看,那么我们如何在Linux下进行安装和配置中文字库呢?
Linux安装开源中文字体的方法
下面以Linux安装开源字库文泉驿为例: C/C++ Code复制内容到剪贴板 [inbi@debian ~]#aptitude install -y ttf-bitstream-vera ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy ttf-arphic-ukai ttf-arphic-uming
Linux安装Windows系统的字库
以上配置应该能够满足日常需要了,而且字型也足够美观大方。如果还是觉得不满意,非得偷盗 Windows 的字体才舒服的话,请将偷来的文件放到 $HOME/.fonts/ 目录下,然后运行 sudo fc-cache 即可。 courbd.ttf courbi.ttf couri.ttf cour.ttf Yahei.ttf simsun.ttf tahomabd.ttf tahoma.ttf verdanab.ttf verdanai.ttf verdana.ttf
修改Linux字库配置文件
将以下内容存放到$HOME/.fonts.conf,就可以了。 HTML/XML Code复制内容到剪贴板 <?xml version='1.0' encoding='utf-8'?> fontconfig SYSTEM 'fonts.dtd'>
true hintfull true none lcddefault true Microsoft Yahei Andale Mono Arial Comic Sans MS Georgia Impact Trebuchet MS Verdana Courier New Times New Roman Tahoma Webdings Albany AMT Thorndale AMT Cumberland AMT Andale Sans Andy MT Bell MT Monotype Sorts MingLiU PMingLiU 16 false false true hintslight Courier Courier New lcdlegacy zh ja ko proportional false SimSun 宋体 WenQuanYi Bitmap Song Evermore Song AR PL ShanHeiSun Uni WenQuanYi Bitmap Song Evermore Song 永中宋体 13 WenQuanYi Zen Hei WenQuanYi Bitmap Song 16 WenQuanYi Zen Hei mono monospace sans serif sans sans-serif AR PL ShanHeiSun Uni AR PL New Sung NSimSun MingLiu PMingLiu 13 13 serif DejaVu Serif WenQuanYi Bitmap Song WenQuanYi Zen Hei Sharp Bitstream Vera Serif AR PL ShanHeiSun Uni AR PL UMing CN AR PL UMing TW AR PL SungtiL GB Evermore Song AR PL UMing TW Liberation Serif Bitstream Charter Droid Serif Luxi Serif FreeSerif Tahoma Verdana Arial sans-serif Microsoft Yahei WenQuanYi Micro Hei WenQuanYi Zen Hei DejaVu Sans Bitstream Vera Sans Droid Sans Luxi Sans Tahoma Verdana Arial monospace WenQuanYi Zen Hei Mono WenQuanYi Micro Hei Mono DejaVu Sans Mono Droid Sans Mono Bitstream Vera Sans Mono WenQuanYi Zen Hei Sharp Liberation Sans Mono Luxi Mono Nimbus Mono L Andale Mono FreeMono Tahoma Verdana Arial00分享举报