|
|
发表于 2003-12-17 15:01:29
|
显示全部楼层
是不是中文字体的问题?
我遇到过类似的。用的LC_TYPE是什么?
我以前的记录,不过是英文的:
Note: If you use LC_CTYPE=zh_CN.GBK (and possibly other codeset, such as GB18030, I guess), make sure you have some entry that defines fonts for charset gbk in fonts.dir and fonts.scale in one of your X FontPath. In my case, if there is no single gbk codeset font defined, X will take LONG time to start up (In my case one minute plus and still going).
...
Once the locale is set to zh_CN.GBK, startx becomes extremely slow (1 minute plus and still counting). Change back locale to C and eveything is ok.
...
*2003-11-17*
Solving the slow startx under zh_CN.GBK problem
-----------------------------------------------
Retried to run startx under LC_CTYPE=zh_CN.GB2312, and it took only 6 - 7 seconds. I suspect it is because there is no font for GBK codeset (inspired by a document in LinuxSir.org that explains details of fonts.dir file). Looking at fonts.dir file and fonts.scale files under the directory where my simsun.ttc resides (/usr/X11R6/lib/fonts/local/) shows indeed there is no font defined for gbk. So duplicated the line:
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
and changed it to:
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0
Did the same thing for fonts.scale (guess it is necessary). Updated first line of both file to indicate the correct number of fonts listed below.
After that run startx again. Voila! After less than 10 seconds I am in fluxbox. |
|