|
发表于 2005-7-13 14:02:22
|
显示全部楼层
X.org 请使用 UTF-8 的 locale
然后新建文件 /etc/gtk/gtkrc.zh_CN.utf-8
改为类似这样
[php]
style "gtk-default-zh-cn" {
fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
[/php]
不要奇怪为什么字体是 gb2312.1980-1 , X.org 的 locale 处理是不一样的
hua@hua:~$ locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[php]
hua@hua:~$ cat ~/.gtkrc
# -- THEME AUTO-WRITTEN DO NOT EDIT
include "/usr/share/themes/Smooth-Winter/gtk/gtkrc"
style "user-font"
{
font="-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
-wenquanyi-wenquanyi bitmap song-medium-r-normal-*-*-160-*-*-c-*-iso10646-1"
}
widget_class "*" style "user-font"
include "/home/hua/.gtkrc.mine"
# -- THEME AUTO-WRITTEN DO NOT EDIT
hua@hua:~$
[/php]
style "gtk-default-zh-cn" {
fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
[/php] |
|