|
楼主 |
发表于 2003-10-27 12:38:29
|
显示全部楼层
谢谢xjdong兄的关注。事先声明一下,这种美化的方法并非我的原创,而大多都是从linuxsir上面兄弟们的帖子整理而来。我只是起了一个整理的作用。还有,美化的方法不止一种,还有其他的更好的方法,比如:xft +fontconfig ;也还有更简单的方法。不过只是觉得这种方法对系统的改变比较少,不喜欢可以自己改回来,也不会造成其他莫名的兼容性问题。我把上面的英文步骤再用中文重写一下吧。假我之手,把兄弟们的心血,献给需要的兄弟们吧。
把我提供的包里的相应文件复制到相应目录覆盖原来的文件就可以了。注意备份原来的文件。注意所有人和权限。
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
A. 在安装系统之前需要注意的事情
1.在系统安装的时候,请只选择简体中文,不要选择其他语言。否则该方案可能不能完美生效。但是不要担心,不会影响任何的其他语言显示。例子:我在上面贴的繁体中文;倭文;韩文显示效果。http://www.linuxfans.org/nuke/mo ... geninfo&did=489
至于具体为什么要这么做,我还没有搞清楚。来自于qiucktime兄的帖子的忠告。
2.lilo配置要选择“强制ACPI”,这样就可以自动关机了。mandrake对acpi支持很好的。
3. null
4.null
5.注意文件的权限。我的这个包里的文件的所有者;可执行权限。有的脚本没有执行权限,就只是个文本文件了,起不到作用。
6.do not install the xcin ; chinput .if you don't like the Chinput/miniChinput .
the fact is :It doesn't work well after our this PP method . 这个问题在上几层楼我也详细提到过。
7.do not select the gnome--galaxy theme package when install the system .It will draft any other theme you installed into the gnome galaxy-liking; eg: the border and the button . the other theme can not make effect at all .
B. X-windows 系统字体美化
a.建立目录 /usr/share/fonts/zh_CN/TrueType/simsun
b. 拷贝字体 simsun.ttf (renamed from simsun.ttc ) ; tahoma.ttf tahomabd.ttf 到这个目录里面。
=================================================================
c.在这个目录里新建文件 fonts.dir as following code (full)
63
simsun.ttf -misc-fixed-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:simsun.ttf -misc-simsun-medium-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:simsun.ttf -misc-simsun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0
ab=y:simsun.ttf -misc-simsun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.2:ab=y:simsun.ttf -misc-simsun-bold-o-normal--0-0-0-0-c-0-gb2312.1980-0
ai=0.4:ab=y:simsun.ttf -misc-simsun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0
sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-iso8859-1
ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-r-normal--0-0-0-0-c-0-iso8859-1
ai=0.2:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-o-normal--0-0-0-0-c-0-iso8859-1
ai=0.4:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-i-normal--0-0-0-0-c-0-iso8859-1
ai=0.2:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-o-normal--0-0-0-0-c-0-iso8859-1
ai=0.4:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-i-normal--0-0-0-0-c-0-iso8859-1
ai=-0.2:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-ro-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:sw=1:bw=0.5:simsun.ttf -misc-simsun-medium-ri-normal--0-0-0-0-c-0-iso8859-1
ai=-0.2:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-ro-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:ab=y:sw=1:bw=0.5:simsun.ttf -misc-simsun-bold-ri-normal--0-0-0-0-c-0-iso8859-1
ai=-0.4:simsun.ttf -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.4:ab=y:simsun.ttf -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:simsun.ttf -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gb2312.1980-0
ai=-0.2:ab=y:simsun.ttf -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gb2312.1980-0
simsun.ttf -misc-simsun-medium-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:simsun.ttf -misc-simsun-medium-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:simsun.ttf -misc-simsun-medium-i-normal--0-0-0-0-c-0-gbk-0
ab=y:simsun.ttf -misc-simsun-bold-r-normal--0-0-0-0-c-0-gbk-0
ai=0.2:ab=y:simsun.ttf -misc-simsun-bold-o-normal--0-0-0-0-c-0-gbk-0
ai=0.4:ab=y:simsun.ttf -misc-simsun-bold-i-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:simsun.ttf -misc-simsun-medium-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.4:ab=y:simsun.ttf -misc-simsun-bold-ri-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:simsun.ttf -misc-simsun-medium-ro-normal--0-0-0-0-c-0-gbk-0
ai=-0.2:ab=y:simsun.ttf -misc-simsun-bold-ro-normal--0-0-0-0-c-0-gbk-0
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-r
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-15
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-14
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-10
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-iso8859-8
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-7
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-6
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-4
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-2
tahoma.ttf -microsoft-Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-1
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-koi8-r
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-15
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-14
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-10
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-iso8859-8
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-7
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-6
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-4
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-2
tahomabd.ttf -microsoft-Tahoma-bold-r-normal--0-0-0-0-p-0-iso8859-1
d.把上面的文件fonts.dir另存为 fonts.scale ,这样这个目录/usr/share/fonts/zh_CN/TrueType/simsun 下就有两个一样的文件 fonts.dir fonts.scale
===================================================================
e. 在这个文件夹里面建立文件 encodings.dir as the following code (full)
40
big5.eten-0 /usr/X11R6/lib/X11/fonts/encodings/large/big5.eten-0.enc.gz
viscii1.1-1 /usr/X11R6/lib/X11/fonts/encodings/viscii1.1-1.enc.gz
microsoft-cp1258 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1258.enc
microsoft-cp1252 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1252.enc
microsoft-cp1253 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1253.enc
microsoft-cp1250 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1250.enc
microsoft-cp1251 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1251.enc
microsoft-cp1256 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1256.enc
microsoft-cp1257 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1257.enc
microsoft-cp1254 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1254.enc
mulelao-1 /usr/X11R6/lib/X11/fonts/encodings/mulelao-1.enc
microsoft-cp1255 /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1255.enc
jisx0212.1990-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0212.1990-0.enc.gz
jisx0208.1990-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0208.1990-0.enc.gz
big5.cp950-0 /usr/X11R6/lib/X11/fonts/encodings/large/big5.eten-0.enc.gz
jisx0208.1983-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0208.1983-0.enc.gz
big5-0 /usr/X11R6/lib/X11/fonts/encodings/large/big5.eten-0.enc.gz
gb2312.1980-0 /usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz
adobe-symbol /usr/X11R6/lib/X11/fonts/encodings/adobe-symbol.enc.gz
adobe-standard /usr/X11R6/lib/X11/fonts/encodings/adobe-standard.enc.gz
microsoft-ansi /usr/X11R6/lib/X11/fonts/encodings/microsoft-cp1252.enc
tis620-0 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
tis620.2529-1 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
armscii-8 /usr/X11R6/lib/X11/fonts/encodings/armscii-8.enc
gbk-0 /usr/X11R6/lib/X11/fonts/encodings/large/gbk-0.enc.gz
mulearabic-2 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-2.enc
tis620.2533-0 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
mulearabic-0 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-0.enc
mulearabic-1 /usr/X11R6/lib/X11/fonts/encodings/mulearabic-1.enc
tis620.2533-1 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
jisx0201.1976-0 /usr/X11R6/lib/X11/fonts/encodings/large/jisx0201.1976-0.enc.gz
ksc5601.1987-0 /usr/X11R6/lib/X11/fonts/encodings/large/ksc5601.1987-0.enc.gz
ibm-cp437 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp437.enc
tcvn-0 /usr/X11R6/lib/X11/fonts/encodings/tcvn-0.enc
ibm-cp852 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp852.enc
ibm-cp866 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp866.enc
ibm-cp850 /usr/X11R6/lib/X11/fonts/encodings/ibm-cp850.enc
iso8859-13 /usr/X11R6/lib/X11/fonts/encodings/iso8859-13.enc
iso8859-11 /usr/X11R6/lib/X11/fonts/encodings/iso8859-11.enc
adobe-dingbats /usr/X11R6/lib/X11/fonts/encodings/adobe-dingbats.enc.gz
==================================================================
f.修改 /etc/fonts/fonts.conf as following (这是修改后的全文) :
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>
<!--
The intent of this standard configuration file is to be adequate for
most environments. If you have a reasonably normal environment and
have found problems with this configuration, they are probably
things that others will also want fixed. Please send any suggested
changes to fonts@xfree86.org so that future releases can include
such changes.
Keith Packard
-->
<!-- Font directory list configured on Mon Sep 9 15:24:30 EDT 2002 -->
<dir>/usr/share/fonts/zh_CN/TrueType/simsun</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir>/usr/share/fonts</dir>
<dir>/home/OtherFont</dir>
<dir>/usr/share/yudit/fonts</dir>
<dir>/usr/local/starsuite6.0/share/fonts/truetype</dir>
<dir>~/.fonts</dir>
<!--
Enable sub-pixel rendering
<match target="font">
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
-->
<match target="font">
<test qual="any" name="pixelsize" compare="less">
<double>17</double>
</test>
<test qual="any" name="family" compare="eq">
<string>simsun</string>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool></edit>
</match>
<!--
Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
<match target="pattern">
<test qual="any" name="family">
<string>mono</string>
</test>
<edit name="family" mode="assign">
<string>monospace</string>
</edit>
</match>
<!--
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans serif</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>
<!--
Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans</string>
</test>
<edit name="family" mode="assign">
<string>sans-serif</string>
</edit>
</match>
<!--
Mark common families with their generics so we'll get
something reasonable
-->
<!--
Serif faces
-->
<alias>
<family>Tahoma</family>
<family>Simsun</family>
<family>Times</family>
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<default><family>serif</family></default>
</alias>
<!--
Sans-serif faces
-->
<alias>
<family>Tahoma</family>
<family>SimSun</family>
<family>Helvetica</family>
<family>Arial</family>
<family>Verdana</family>
<family>Nimbus Sans L</family>
<family>Luxi Sans</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>Baekmuk Dotum</family>
<default><family>sans-serif</family></default>
</alias>
<!--
Monospace faces
-->
<alias>
<family>Tahoma</family>
<family>NSimSun</family>
<family>Courier</family>
<family>Courier New</family>
<family>Andale Mono</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<default><family>monospace</family></default>
</alias>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>
<!--
Load per-user customization file
-->
<include ignore_missing="yes">~/.fonts.conf</include>
<!--
Load local system customization file
-->
<include ignore_missing="yes">local.conf</include>
<!--
Alias well known font names to available TrueType fonts
-->
<alias>
<family>Times</family>
<accept><family>Times New Roman</family></accept>
</alias>
<alias>
<family>Helvetica</family>
<accept><family>Verdana</family></accept>
</alias>
<alias>
<family>Arial</family>
<accept><family>Verdana</family></accept>
</alias>
<alias>
<family>Courier</family>
<accept><family>Courier New</family></accept>
</alias>
<!--
Provide required aliases for standard names
-->
<alias>
<family>serif</family>
<prefer>
<family>Tahoma</family>
<family>Simsun</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Kochi Mincho</family>
<family>ZYSong18030</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<family>Times New Roman</family>
<family>Times</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Tahoma</family>
<family>SimSun</family>
<family>Luxi Sans</family>
<family>Nimbus Sans L</family>
<family>Helvetica</family>
<family>Kochi Gothic</family>
<family>ZYSong18030</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Gulim</family>
<family>Verdana</family>
<family>Arial</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Tahoma</family>
<family>Simsun</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<family>Kochi Gothic</family>
<family>ZYSong18030</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Gulim</family>
<family>Andale Mono</family>
<family>Courier New</family>
</prefer>
</alias>
<!--
We can't hint CJK fonts well, so turn off hinting for CJK fonts.
-->
<match target="font">
<test name="lang" compare="contains">
<string>ja</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<!-- the rh_prefer_bitmaps options (a nonstandard
Red Hat extension), controls whether embedded
bitmaps, when available are preferred
to antialiased rendering. For Japanese,
we prefer antialiased rendering -->
<edit name="rh_prefer_bitmaps" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="lang" compare="contains">
<string>ko</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="lang" compare="contains">
<string>zh</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
<!--
Artificial oblique for fonts without an italic or oblique version
-->
<match target="font">
<!-- check to see if the font is roman -->
<test name="slant">
<const>roman</const>
</test>
<!-- check to see if the pattern requested non-roman -->
<test target="pattern" name="slant" compare="not_eq">
<const>roman</const>
</test>
<!-- multiply the matrix to slant the font -->
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>.2</double>
<double>0</double><double>1</double>
</matrix>
</times>
</edit>
<!-- pretend the font is oblique now -->
<edit name="slant" mode="assign">
<const>oblique</const>
</edit>
</match>
<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
<config>
<!--
These are the default Unicode chars that are expected to be blank
in fonts. All other blank chars are assumed to be broken and
won't appear in the resulting charsets
-->
<blank>
<int>0x20</int> <!-- space -->
<int>0xa0</int> <!-- nsbp -->
<int>0x2000</int> <!-- general punctuation spaces -->
<int>0x2001</int>
<int>0x2002</int>
<int>0x2003</int>
<int>0x2004</int>
<int>0x2005</int>
<int>0x2005</int>
<int>0x2006</int>
<int>0x2007</int>
<int>0x2008</int>
<int>0x2009</int>
<int>0x200a</int>
<int>0x200b</int>
<int>0x3000</int> <!-- CJK space -->
</blank>
<!--
Rescan configuration every 30 seconds when FcFontSetList is called
-->
<rescan>
<int>30</int>
</rescan>
</config>
</fontconfig>
g.安装包里的 xft2-2.1.1-3mdk.firefly.i586.rpm
h.修改文件 /etc/X11/XF86Config-4
在 Section "Files" 加上
FontPath "/usr/share/fonts/zh_CN/TrueType/simsun"
在 Section "Module" 加上
Load "xtt"
通过在前面加# 注销
Load "type1"
Load "freetype"
===========================================================
i.修改 /etc/gtk/gtkrc.zh_CN (下面是修改后的全文) 来美化gtk 1.0在KDE/Gnome 下的字体显示效果。 eg: xmms gimp
style "gtk-default-zh-cn" {
fontset = "-microsoft-tahoma-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-*"
}
class "GtkWidget" style "gtk-default-zh-cn"
C. gtk/gtk2 程序的主题 在 KDE里
a. the gtk2.0 主题和字体显示 in the KDE
1) install the theme in the gnome
2) go into my baby KDE
=========================================================
3) modify the file ~/.gtkrc-2.0 like the following for gtk 2.0
/home/你的帐户/.themes/XXXX 是你把主题安装到的文件夹一般在/home/你的帐户/.themes/下 , 如果是root装的 it also can be install in the /usr/share/themes (full)
include "/home/youraccout /.themes/XXXX/gtk-2.0/gtkrc"
# optimize the font that gtk 2.0 in the KDE
style "user-font"
{
font_name="tahoma 9"
}
widget_class "*" style "user-font"
============================================================
b. the gtk1.0 theme in the KDE ; like xmms ,gimp
modify the file ~/.gtkrc like the following for the them of gtk 1.0,如果你所用的gtk2.0的主题文件夹/home/pyouraccout/.themes/XXXX里有gtk这个子文件夹的话,那么你的gtk1.0就可以使用和gtk2.0一样的主题了。如果没有,找一个有的主题,并指向这个文件gtkrc
# /home/pyouraccout/.themes/XXXX is where the theme installed ,it also can be install in the /usr/share/themes
include "/home/youraccout/.themes/XXX/gtk/gtkrc"
#where the theme installed and find the "gtkrc" file in the “gtk” folder if the re is the “gtk” folder.
==============================================================
c. do not install the linuxfans-xft2!! To install xft2-2.1.1-3mdk.firefly.i586.rpm is good engouh.
d.logout login
e. modify the /etc/X11/Xresources 里面的 Xft.dpi 改成 Xft.dpi: 96 把kde的字体分辨率设置成96 。
f.在gnome下,通过字体设置把gnome的字体分辨率也设成 96,字体大小选9;
kde的也是 96,字体大小9; tahoma ;在控制中心设置。
文件管理器konqueror的字体设置在这里 control centre-->component-->file manager-->font
g. install the Chinese input fcitx .You can choose others .but the Xsim in the 9.1 can not work well in the 9.2 . After you install the fcitx from rpm ,nothing needs to be configured.安装包里的fcitx ,不用进行任何设置就可以使用小企鹅输入法了。呵呵。前提:没有装xcin和miniChinput ;或者已经将其卸载。
h. Open Office 1.1 , install the OO; it's very very very good . replace the "tahoma" to the "simsun" in the option-->fonts . then use the system fonts in the "others option" .then you can see the beautiful simsun fonts in your OO menu . openoffice的字体具体设置在上几层楼我回答过了
===============================================================================
i. the Chinese fonts in xmms playlist ,check the "using the fontscollect" in the perference of font in xmms , then copy the following code in it
-microsoft-tahoma-medium-r-normal-*-*-120-*-*-p-*-iso8859-1 ,-misc-simsun-medium-r-normal-*-*-120-*-*-c-*-iso8859-1
D . galeon ,mozilla , firebird ;the gdm 字体美化。如果你对你的 galeon ,mozilla , firebird ; gdm 菜单字体显示不满意,或者对显示网页不满意,有乱码;在/etc/fonts/fonts.conf里加上以下代码。 由penny提供。
============================================================================
add the code to the /etc/fonts/fonts.conf
<!--linusware found in linuxsir -->
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>SimSun</string>
</test>
<edit name="family" mode="prepend_first" binding="strong">
<string>Tahoma</string>
</edit>
</match>
E .the gnome-terminal vim will work perfectly with the gnome-terminal ,the rvxt should be needed, no CJK needed.
===============================================================
F.MozillaFirebird在gnome里,默认的是在一个用户的帐号下,每从控制台大开一个新的firebird 窗口,就要使用新的profile 。 非常不方便。这个启动脚本可以实现在一个用户只使用一个profile,而不论打开多少个新窗口。可以作为快速启动器用
scratch the shellscript by following method (full):
#!/bin/bash
MozillaFirebird -remote "openurl($@, new-window)" >& /dev/null || MozillaFirebird $@
if you like tab :
MozillaFirebird -remote "openurl($@, new-tab)">& /dev/null || MozillaFirebird $@
then save as flyfirebird in the same directory with the MozillaFirebird
then ln -s /usr/local/MozillaFirebird/MozillaFirebird /usr/local/bin/MozillaFirebird
then ln -s /usr/local/MozillaFirebird/flyfirebird /usr/local/bin/flyfirebird
take care about the permission in non-root account -x executable!!!
G.stickynotes install automatically in the gnome 2.4
H.stardict : install the stardict rpm for 9.1 can cause the crash of the menu !!!
I. firebird 0.7 flash plugin : use the rpm in the folder
J. backup the /usr/share/applnk-mdk when after/before install a program that may make the menu crash
L . install the gnome icon copy it to the folder ~/.icons
and choose it from the theme chooser in the gnome if this icon theme works well.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Good luck !!!! |
|