b)建议复制几个Windows字体,Linux显示中文要依赖它们:
| cp -vR {arial.ttf,\ simsun.ttc,\ simhei.ttf,\ simkai.ttf,\ times.ttf,\ monos.ttf,\ sans.ttf} /usr/share/fonts/TrueType cd /usr/share/fonts/TrueType mkfontscale mkfontdir |
c)简单美化一下
| cat /etc/fonts/local.conf <<EOF <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!--/etc/fonts/local.conf--> <fontconfig> <dir>/usr/share/fonts/TrueType/</dir> <dir>~/.fonts</dir> <dir>/usr/X11R6/lib/X11/fonts</dir> <!--default settings for all fonts. --> <match target="font"> <!-- Open AA--> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> <!-- Open hint--> <edit mode="assign" name="hinting"> <bool>true</bool> </edit> <!-- Close autohint--> <edit mode="assign" name="autohint"> <bool>false</bool> </edit> </match> <!--English monospace Close--> <match target="font"> <test target="pattern" name="lang" compare="contains"> <string>zh-tw</string> <string>zh-cn</string> <string>ja</string> <string>ko</string> </test> <edit name="spacing"> <const>proportional</const> </edit> <edit name="globaladvance"> <bool>false</bool> </edit> </match> </fontconfig> EOF |
d)下面是各种字符集编码名称
| zh_CN.gb2312 # 国标码,WindowsXP系统默认的编码 zh_CN.gbk zh_CN.gb18030 zh_CN.utf8 en_US.utf8 cp936 # 应该就是指gb2312吧 euc-cn # 不知道是不是gb2312 iso10646-1 # 网上搜一下吧,我也不知道啥玩意儿,gbk? |
