论坛首页 入门技术论坛

fvwm-crystal中文乱码的解决办法

浏览 3475 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-08-15  

最近老发现自己的gnome运行太慢,所以把gnome换成了fvwm,fvwm-crystal的确很漂亮,但中文乱码问题让刚使用的人会很头痛,去网上搜一下,有一定的帮助,我又把网上的做了点修改,不知道对不对,不过现在不乱码就是了。如下:

 

*FvwmFormDefault: Font "xft:宋体:pixelsize=12"
*FvwmFormDefault: InputFont "xft:宋体:pixelsize=12"
*FvwmFormDefault: ButtonFont "xft:宋体:pixelsize=12:Bold"
*FvwmFormDefault: TimeoutFont "xft:宋体:pixelsize=12:Bold"

#以下是解决乱码问题
#Menustyle * Font "StringEncoding=gbk-0:xft:Serif:size=10:encoding=zh_CN.UTF-8"
#
Menustyle * Font "StringEncoding=utf-8:xft:Serif:size=10:encoding=zh_CN.UTF-8"
#
Style * Font "xft:宋体:style=bold:size=12:encoding=zh_CN.UTF-8"
#
Style "*" Font "xft:宋体ixelsize=14;-*-simsun-medium-r-normal-*-*-130-*-*-*-*-iso10646-*"
#
#
#Style "*" Font "xft:宋体ixelsize=14;-*-simsun-medium-r-normal-*-*-130-*-*-*-*-iso10646-*"
#
#MenuStyle * Font "xft:宋体ixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIdent: Font "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Icons: TipsFont "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Left: Font "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Left: TipsFont "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Right: Font "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Right: TipsFont "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#

#
#Style * Font "xft:宋体:style=bold:size=12:encoding=zh_CN.UTF-8"
administrator@ubuntu:~$ cat .fvwm-crystal/userconfig
*FvwmFormDefault: Font "xft:宋体:pixelsize=12"
*FvwmFormDefault: InputFont "xft:宋体:pixelsize=12"
*FvwmFormDefault: ButtonFont "xft:宋体:pixelsize=12:Bold"
*FvwmFormDefault: TimeoutFont "xft:宋体:pixelsize=12:Bold"

#以下是解决乱码问题
#Menustyle * Font "StringEncoding=gbk-0:xft:Serif:size=10:encoding=zh_CN.UTF-8"
#
Menustyle * Font "StringEncoding=utf-8:xft:Serif:size=10:encoding=zh_CN.UTF-8"
#
Style * Font "xft:宋体:style=bold:size=12:encoding=zh_CN.UTF-8"
#
Style "*" Font "xft:宋体ixelsize=14;-*-simsun-medium-r-normal-*-*-130-*-*-*-*-iso10646-*"
#
#
#Style "*" Font "xft:宋体ixelsize=14;-*-simsun-medium-r-normal-*-*-130-*-*-*-*-iso10646-*"
#
#MenuStyle * Font "xft:宋体ixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIdent: Font "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Icons: TipsFont "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Left: Font "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Left: TipsFont "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Right: Font "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#
*FvwmIconMan-Windows-Right: TipsFont "xft:宋体:pixelsize=11:encoding=zh_CN.UTF-8;*-r-*"
#

#
#Style * Font "xft:宋体:style=bold:size=12:encoding=zh_CN.UTF-8"

 

论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics