最近老发现自己的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"