LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 翔羽

完美的RH8+gnome+KDE使用simsun的方案(11月13日修改)

[复制链接]
 楼主| 发表于 2002-10-25 17:58:45 | 显示全部楼层
对于mozilla使用simsun的问题确实不应出现的。
你将你的fonts.dir文件弄成我的那样,在仔细的看看/etc/X11/XF86Config
/etc/gtk/gtkrc.zh_CN
/etc/gnome/gtkrc.zh_CN
文件的改动。
只要你的改动是正确的,就不可能出问题在mozilla
发表于 2002-10-26 01:13:50 | 显示全部楼层
我的XF86config文件:

# File generated by anaconda.

Section "ServerLayout"
        Identifier     "Anaconda Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        #

        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

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 (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

    FontPath   "/usr/local/zhfonts"
    FontPath   "unix/:7100"

EndSection

Section "Module"
        Load  "xtt"
       #Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
       #Load  "dri"
        Load  "glx"
       #Load  "record"
       #Load  "freetype"
       #Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"

#        Option        "AutoRepeat"        "500 5"

# when using XQUEUE, comment out the above line, and uncomment the
# following line
#        Option        "rotocol"        "Xqueue"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
        Option        "XkbRules"        "xfree86"
        Option        "XkbModel"        "pc105"
        Option        "XkbLayout"        "us"
        #Option        "XkbVariant"        ""
        #Option        "XkbOptions"        ""
EndSection

Section "InputDevice"
        Identifier        "Mouse0"
        # Modified by mouseconfig
        Driver                "mouse"
        Option                "Device"                "/dev/mouse"
        Option                "rotocol"                "IMPS/2"
        Option                "Emulate3Buttons"        "yes"
        Option                "ZAxisMapping"                "4 5"
EndSection

#


Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync   31.5-48.5
        VertRefresh 40-70
        Option "dpms"

       
EndSection

Section "Device"
        # no known options
        Identifier   "NVIDIA GeForce 4 (generic)"
        Driver       "nvidia"
        VendorName   "NVIDIA GeForce 4 (generic)"
        BoardName     "NVIDIA GeForce 4 (generic)"
        
        #BusID
EndSection

Section "Screen"
        Identifier   "Screen0"
        Device       "NVIDIA GeForce 4 (generic)"
        Monitor      "Monitor0"
        DefaultDepth        24

        Subsection "Display"
                Depth       24
                Modes       "1024x768" "800x600" "640x480"
        EndSubsection

EndSection

Section "DRI"
        Mode 0666
EndSection
发表于 2002-10-26 01:15:12 | 显示全部楼层
我的/etc/gtk/gtkrc.zh_CN文件:

# File generated by anaconda.

Section "ServerLayout"
        Identifier     "Anaconda Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        #

        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

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 (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

    FontPath   "/usr/local/zhfonts"
    FontPath   "unix/:7100"

EndSection

Section "Module"
        Load  "xtt"
       #Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
       #Load  "dri"
        Load  "glx"
       #Load  "record"
       #Load  "freetype"
       #Load  "type1"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"

#        Option        "AutoRepeat"        "500 5"

# when using XQUEUE, comment out the above line, and uncomment the
# following line
#        Option        "rotocol"        "Xqueue"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
        Option        "XkbRules"        "xfree86"
        Option        "XkbModel"        "pc105"
        Option        "XkbLayout"        "us"
        #Option        "XkbVariant"        ""
        #Option        "XkbOptions"        ""
EndSection

Section "InputDevice"
        Identifier        "Mouse0"
        # Modified by mouseconfig
        Driver                "mouse"
        Option                "Device"                "/dev/mouse"
        Option                "rotocol"                "IMPS/2"
        Option                "Emulate3Buttons"        "yes"
        Option                "ZAxisMapping"                "4 5"
EndSection

#


Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync   31.5-48.5
        VertRefresh 40-70
        Option "dpms"

       
EndSection

Section "Device"
        # no known options
        Identifier   "NVIDIA GeForce 4 (generic)"
        Driver       "nvidia"
        VendorName   "NVIDIA GeForce 4 (generic)"
        BoardName     "NVIDIA GeForce 4 (generic)"
        
        #BusID
EndSection

Section "Screen"
        Identifier   "Screen0"
        Device       "NVIDIA GeForce 4 (generic)"
        Monitor      "Monitor0"
        DefaultDepth        24

        Subsection "Display"
                Depth       24
                Modes       "1024x768" "800x600" "640x480"
        EndSubsection

EndSection

Section "DRI"
        Mode 0666
EndSection
发表于 2002-10-26 01:16:13 | 显示全部楼层
我的/etc/gnome/gtkrc.zh_CN文件:

# $(datadir)/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 <srtxg@chanae.alphanet.ch>

style "GnomeScores_CurrentPlayer_style"
{
  fg[NORMAL] = {1.0, 0.0, 0.0}
}

style "GnomeScores_Logo_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
  fg[NORMAL] = {0.0, 0.0, 1.0}
}

style "GnomeAbout_DrawingArea_style"
{
  bg[NORMAL] = {1.0, 1.0, 1.0}
}

style "GnomeAbout_Title_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
}

style "GnomeAbout_Copyright_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
}

style "GnomeAbout_Author_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
}

style "GnomeAbout_Names_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
}

style "GnomeAbout_Comments_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
}

style "GnomeHRef_Label_style"
{
  fg[NORMAL] = { 0.0, 0.0, 1.0 }
  fg[PRELIGHT] = { 0.0, 0.0, 1.0 }
  fg[INSENSITIVE] = { 0.5, 0.5, 1.0 }
  fg[ACTIVE] = { 1.0, 0.0, 0.0 }
}

style "GnomeGuru_PageTitle_style"
{
  fontset = "-misc-simsun-medium-r-normal--12-*-*-*-*-*-iso10646-1"
}


widget "*GnomeScores*.CurrentPlayer" style "GnomeScores_CurrentPlayer_style"
widget "*GnomeScores*.Logo" style "GnomeScores_Logo_style"
widget "*GnomeAbout*.DrawingArea" style "GnomeAbout_DrawingArea_style"
widget "*GnomeAbout*.Author" style "GnomeAbout_Author_style"
widget "*GnomeAbout*.Comments" style "GnomeAbout_Comments_style"
widget "*GnomeAbout*.Copyright" style "GnomeAbout_Copyright_style"
widget "*GnomeAbout*.Names" style "GnomeAbout_Names_style"
widget "*GnomeAbout*.Title" style "GnomeAbout_Title_style"
widget "*GnomeHRef.GtkLabel" style "GnomeHRef_Label_style"
widget "*GnomeGuru*.PageTitle" style "GnomeGuru_PageTitle_style"
发表于 2002-10-26 01:17:22 | 显示全部楼层
实在麻烦您帮我看看,我这里就mozilla和ximian的字体不对.比较难看.
发表于 2002-10-26 08:47:46 | 显示全部楼层

你的/etc/gtk/gtkrc.zh_CN文件怎么会是这样的?

是不是贴错了。如果不是,请你检查并看看我的。
style "gtk-default-zh-cn" {
        fontset = "-misc-simsun-medium-r-normal--14-*-*-*-*-*-iso10646-1,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
 楼主| 发表于 2002-10-27 09:29:44 | 显示全部楼层
To    菜鹅
你贴出的gtkrc文件应是XF86Config文件。
发表于 2002-10-27 10:25:54 | 显示全部楼层
to 各位高手

我得gtkrc.zh_CN文件完全是按照这里得拷贝上去得


style "gtk-default-zh-cn" {
#        fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
#                          -*-*-medium-r-normal--12-*-*-*-*-*-gbk-0,\
#                          -*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,\
#                          -*-*-medium-r-normal--12-*-*-*-*-*-gb18030.2000-0,\
          fontset = " -*-*-medium-r-normal--12-*-*-*-*-*-iso10646-1,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
发表于 2002-10-27 10:40:19 | 显示全部楼层
最初由 菜鹅 发布
to 各位高手

我得gtkrc.zh_CN文件完全是按照这里得拷贝上去得


style "gtk-default-zh-cn" {
#        fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
#                          -*-*-medium-r-normal--12-*-*-*-*-*-gbk-0,\
#                          -*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,\
#                          -*-*-medium-r-normal--12-*-*-*-*-*-gb18030.2000-0,\
          fontset = " -*-*-medium-r-normal--12-*-*-*-*-*-iso10646-1,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"


还是"翔羽"正确。

最初由 翔羽 发布
前面的四行应注释掉的,只用
fontset = " -*-*-medium-r-normal--12-*-*-*-*-*-iso10646-1,*-r-*"
可以解决gaim下不能是用大于gb2312的问题。

也可视你的locale决定使用那一行但要注意书写格式。
 楼主| 发表于 2002-10-27 10:58:22 | 显示全部楼层
前面的四行应注释掉的,只用
fontset = " -*-*-medium-r-normal--12-*-*-*-*-*-iso10646-1,*-r-*"
可以解决gaim下不能是用大于gb2312的问题。

也可视你的locale决定使用那一行但要注意书写格式。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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