如何设置使的ubuntu下mono能支持Encoding("gb2312")编码
-
- 帖子: 1
- 注册时间: 2010-11-04 18:41
如何设置使的ubuntu下mono能支持Encoding("gb2312")编码
如何设置使的ubuntu下mono能支持Encoding("gb2312")编码??
-
- 帖子: 3
- 注册时间: 2010-11-28 16:52
Re: 如何设置使的ubuntu下mono能支持Encoding("gb2312")编码
修改字体配置文件
方法1:修改 $HOME/.fonts.conf, 方法二:修改/etc/fonts/conf.avail/69-language-selector-zh-cn.conf
确保 monospace部分有中文字体,如下
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Menlo</string>
<string>Inconsolata</string>
<string>DejaVu Sans Mono</string>
<string>Bitstream Vera Sans Mono</string>
<string>STZhongsong</string>
<string>WenQuanYi Micro Hei Mono</string>
<string>WenQuanYi Zen Hei Mono</string>
</edit>
</match>
然后在桌面点击右键,选择字体,在等款字体中选择monospace,在其她需要mono的地方也是用monospace字体,就能显示中文了
方法1:修改 $HOME/.fonts.conf, 方法二:修改/etc/fonts/conf.avail/69-language-selector-zh-cn.conf
确保 monospace部分有中文字体,如下
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Menlo</string>
<string>Inconsolata</string>
<string>DejaVu Sans Mono</string>
<string>Bitstream Vera Sans Mono</string>
<string>STZhongsong</string>
<string>WenQuanYi Micro Hei Mono</string>
<string>WenQuanYi Zen Hei Mono</string>
</edit>
</match>
然后在桌面点击右键,选择字体,在等款字体中选择monospace,在其她需要mono的地方也是用monospace字体,就能显示中文了