QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1173|回复: 4

gtk1程序找不倒simsun字体

[复制链接]
发表于 2006-1-11 18:47:45 | 显示全部楼层 |阅读模式
系统是FC4,gtkrc已经设置了,xorg也设置了,但是gtk1程序始终找不倒simsun字体,字体目录为/usr/share/fonts/chinese 但是gtk2没问题
xorg.conf和gtkrc如下:
# $(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 = "-misc-SimSun-medium-r-normal--12-*-*-*-*-*-gbk-1,\
                  -*-*-medium-r-normal--12-*-*-*-*-*-gb2312.1980-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"

xorg:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Wed Dec 14 16:39:22 PST 2005

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is 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.
# 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.
    RgbPath         "/usr/X11R6/lib/X11/rgb"
#    FontPath        "unix/:7100"
    FontPath        "/usr/X11R6/lib/X11/fonts/misc"
    FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
    FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
    FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath        "/usr/share/fonts/default/Type1"
    FontPath        "/usr/share/fonts"
EndSection

Section "Module"

#   Load           "dbe"
    Load           "extmod"
    Load           "fbdevhw"
    Load           "glx"
    Load           "record"
    Load           "freetype"
    Load           "type1"
EndSection
......
发表于 2006-1-11 20:10:13 | 显示全部楼层
弱弱的问,你生成的那个什么什么fonts.scale 是什么样子的?
回复

使用道具 举报

 楼主| 发表于 2006-1-11 21:08:11 | 显示全部楼层
fonts.dir
67
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-ascii-0
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-cns11643-1
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-cns11643-2
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-cns11643-3
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-gb18030.2000-0
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-gb2312.1980-0
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-iso10646-1
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-iso8859-1
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-jisx0208.1983-0
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-jisx0208.1990-0
SimSun-Bold.ttf -misc-simsun-bold-r-normal--0-0-0-0-p-0-koi8-r
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-ascii-0
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-cns11643-1
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-cns11643-2
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-cns11643-3
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-gb18030.2000-0
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-jisx0208.1990-0
SimSun.ttf -misc-simsun-medium-r-normal--0-0-0-0-p-0-koi8-r
hei.dfont -urw-hei-medium-r-normal--0-0-0-0-p-0-iso8859-1
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-adobe-standard
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-ascii-0
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso10646-1
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-1
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-10
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-11
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-13
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-15
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-16
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-2
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-3
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-4
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-5
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-8
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-9
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-koi8-e
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-koi8-ru
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-koi8-r
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-koi8-u
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-koi8-uni
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-microsoft-cp1252
tahoma.ttf -microsoft-tahoma-medium-r-normal--0-0-0-0-p-0-tis620-2
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-adobe-standard
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-ascii-0
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso10646-1
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-10
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-11
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-13
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-15
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-16
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-2
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-3
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-4
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-5
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-8
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-9
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-e
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-ru
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-r
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-uni
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-koi8-u
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-microsoft-cp1252
tahomabd.ttf -microsoft-tahoma-bold-r-normal--0-0-0-0-p-0-tis620-2
回复

使用道具 举报

发表于 2006-1-12 22:02:37 | 显示全部楼层
be sure there is "load freetype" in file xorg.conf
回复

使用道具 举报

发表于 2006-1-20 08:59:32 | 显示全部楼层
根本用不着写这么一大堆东西,
把字体放进去,然后fc-cache -f -v,就完了。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-23 00:39 , Processed in 0.047880 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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