找回密码
 注册
查看: 1932|回复: 27

请问:XMMS菜单乱码怎么解决

[复制链接]
发表于 2004-9-25 06:48:42 | 显示全部楼层 |阅读模式
我已经安装完核心字体了,Gnome也完成了中文化,可是XMMS的菜单依然全是乱码,而且字体选择里根本没有Simsun,请问,遇到这个问题怎么解决呀!

我的gtkrc.zh_CN文件如下

[code:1]
# $(gtkconfigdir)/gtkrc.zh_CN
#
# This file defines the fontsets for Chinese language (zh) using
# the simplified chinese standard GuoBiao as in mainland China (CN)
#
# 1999, Pablo Saratxaga <[email protected]>
#

style "gtk-default-zh-cn" {
       fontset = "-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1,\
                  -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0"
}
class "GtkWidget" style "gtk-default-zh-cn"
[/code:1]
发表于 2004-9-25 11:06:29 | 显示全部楼层
xmms里面还要自己配置子体
回复

使用道具 举报

 楼主| 发表于 2004-9-25 12:20:01 | 显示全部楼层
我也想呀,但是在XMMS的字体选择里连Simsun都没有,这可怎么办,难不成真让我用beep
回复

使用道具 举报

发表于 2004-9-25 12:46:37 | 显示全部楼层
连菜单也是乱码是gtk的问题,用中文portage重新emerge gtk
回复

使用道具 举报

 楼主| 发表于 2004-10-6 19:58:11 | 显示全部楼层
[quote:39912582d9="liqishan"]连菜单也是乱码是gtk的问题,用中文portage重新emerge gtk[/quote]
请问是
[code:1]
        emerge x11-libs/gtk+
[/code:1]
么。
回复

使用道具 举报

发表于 2004-10-6 20:48:16 | 显示全部楼层
不一定要重新 emerge。
配置一下 xorg.conf:
[code:1]Section "Files"
    FontPath  "unix/:-1"   <--- 用 xfs 字体服务的话就用这一句,否则注释掉
    #FontPath  "/usr/share/fonts/75dpi"  <--- 不用 xfs 的话,使用从这一下的,具体要用哪些自己改
    #FontPath  "/usr/share/fonts/Type1"
    #FontPath  "/usr/share/fonts/ttf/zh_CN"
    ......
EndSection[/code:1]

你要是用 xfs 的话就保留 unix/:-1,其他都可以不要了; 要是不用 xfs,注释掉那一行,使用其他的。
回复

使用道具 举报

发表于 2004-10-6 21:38:17 | 显示全部楼层
到用户目录下的.xmms/config里改一改字体:)


beep不错啊,gtk2的~~
回复

使用道具 举报

发表于 2004-10-6 21:54:09 | 显示全部楼层
同意楼上的
回复

使用道具 举报

 楼主| 发表于 2004-10-6 22:18:08 | 显示全部楼层
其实,我主要想解决应用gtk1程序的问题,例如XMMS、MPlayer等等。
我的xorg.conf
[code:1]
Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath     "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
#
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/local"
[/code:1]
没有问题,已经配置好了,Gnome的桌面选项——字体里也有SimSun了,可是XMMS的菜单还是乱码。
.xmms/config里的字体相关项有两个,一个是列表,一个是主窗口,和xmms菜单里的选项一样,可是在菜单里根本没有SimSun字体可选,我正是要解决这个问题。
此外,我emerge gtk+后,又要我rebuild theme engine,接下来要怎么办呢?
请指教,谢谢!
回复

使用道具 举报

发表于 2004-10-6 22:23:28 | 显示全部楼层
用户目录下的gtkrc改过没有?
回复

使用道具 举报

 楼主| 发表于 2004-10-7 16:19:13 | 显示全部楼层
[quote:f9123e4d51="linky_fan"]用户目录下的gtkrc改过没有?[/quote]

.gtkrc的内容是
[code:1]

include "/etc/gtk/gtkrc.zh_CN"

[/code:1]

我在/etc/gtk/gtkrc.zh_CN中修改过了。
回复

使用道具 举报

发表于 2004-10-7 16:38:26 | 显示全部楼层
权限是可读的吗?
回复

使用道具 举报

 楼主| 发表于 2004-10-7 17:18:16 | 显示全部楼层
应该把/etc/gtk/gtkrc.zh_CN中的东西复制到用户目录下的.gtkrc里来,可能是权限的问题,才会出现这个问题。
但是,我改过我的目录下的.gtkrc,也还是不行。
.gtkrc文件为:
[code:1]
style "gtk-default-zh-cn" {
       fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,-misc-simsun-medium-r-normal-*-12-*-*-*-*-*-gb2312.1980-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
[/code:1]
BTW:我升级了gtk+,然后系统要求还要rebuild theme engine,怎么rebuild,谁能告诉我一下。谢了!
回复

使用道具 举报

发表于 2004-10-7 20:38:59 | 显示全部楼层
在你的 FontPath 里面没有看到有 ttf 的目录呀?
你的 simsun 放在哪里了?

Gnome 现在使用 gtk2 ,FontPath 影响不到它。
回复

使用道具 举报

 楼主| 发表于 2004-10-8 07:29:12 | 显示全部楼层
[quote:09575b1ffd="dannycat"]在你的 FontPath 里面没有看到有 ttf 的目录呀?
你的 simsun 放在哪里了?

Gnome 现在使用 gtk2 ,FontPath 影响不到它。[/quote]

我的xorg.conf
[code:1]
Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath     "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
#
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/local"
[/code:1]
simsun字体在TTF和local里都有。
Gnome里是有simsun字体的,而XMMS里没有。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-13 13:49 , Processed in 0.027045 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表