当前位置:操作系统 > Unix/Linux >>

完全Mandrake9.0美化

这是在"connermo"的汉化文章指导下完成.

  1. 建立目录: mkdir /usr/X11R6/lib/X11/fonts/TrueType

  2.CP windowsXP下的simsun.ttc、tahoma.ttf及tahomabd.ttf到以上目录,将simsun.ttc改为ttf字体.

  生成:fonts.dir (这个命令:mkttfdir > fonts.dir)修改使其与如下相似:

  24

  simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0

  ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0

  ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0

  ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-gb2312.1980-0

  tahoma.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1

  ai=0.3:tahoma.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1

  tahomabd.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1

  ai=0.3:tahomabd.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1

  simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0

  ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-gbk-0

  ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-gbk-0

  ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-gbk-0

  simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15

  ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15

  ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15

  ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15

  simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15

  ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15

  ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15

  ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15

  simsun.ttf -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1

  ai=0.3:simsun.ttf -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1

  ds=y:simsun.ttf -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1

  ds=y:ai=0.3:simsun.ttf -misc-SimSun-bold-i-normal--0-0-0-0-c-0-iso10646-1

  然后 cp fonts.dir fonts.scale,或者 cat fonts.dir > fonts.scale

  3.修改/etc/X11/XF86Config-4,添加:

  FontPath "/usr/X11R6/lib/X11/fonts/TrueType"注意要添加在unix/:-1这一行前面。

  再在module段中添加:

  Load "xtt"

  (注意注释掉"load type1"和"load freetype"模块. )

  相这样:

  #load type1

  #load freetype

  4.然后拷贝编码文件 encodings.dir 到目录里来.

  cp /usr/X11R6/lib/X11/fonts/encodings/encodings.dir /usr/X11R6/lib/X11/fonts/TrueType

  5.修改/etc/gtk/gtkrc.zh_CN

  把fontset内改为 "-misc-simsun-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,

  -*-*-medium-r-normal--14-*-*-*-*-*-gb2312.1980-0,*-r-*"

  6.为在Gnome2中显simsun字体 ( 这是younker兄的指教)

  首先要解决的问题是确定没有使用xft.

  修改/etc/profile.d/下面的gtk2.sh文件,把GDK_USE_XFT="1" 改成 GDK_USE_XFT="0"

  然后修改/etc/pango/pangox.alias文件,看看它里面的内容你就知道该怎么做了,把你得simsun字体放到每种字体的列表的前面就可以了 .

  这是我的:

  # File defining aliases of PangoFontDescription to X font set

  #

  # family style variant weight stretch XLFD

  sans normal normal normal normal \

  "-misc-SimSun-medium-r-normal--0-0-0-0-c-0-gb2312.1980-0,\

  -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1,\

  -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0,\

  -misc-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15,\

  -misc-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15,\

  -misc-SimSun-medium-r-normal--0-0-0-0-c-0-iso10646-1,\

  -*-helvetica-medium-r-normal--*-*-*-*-*-*-*-*,\

  -*-gulim-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0,\

  -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\

  -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\

  -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\

  -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\

  -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\

  -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\

  -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\

  -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\

  -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\

  -*-kannada-medium-r-normal--*-*-*-*-*-*-iso10646-kan,\

  -*-burmese-medium-r-normal--*-*-*-*-*-*-iso10646-brm,\

  -*-buginese-medium-r-normal--*-*-*-*-*-*-iso10646-bgn,\

  -*-oriya-medium-r-normal--*-*-*-*-*-*-iso10646-ori,\

  -daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0"

  sans italic normal normal normal \

  "-misc-SimSun-medium-i-normal--0-0-0-0-c-0-gb2312.1980-0,\

  -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1,\

  -misc-SimSun-medium-i-normal--0-0-0-0-p-0-gbk-0,\

  -misc-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15,\

  -misc-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15,\

  -misc-SimSun-medium-i-normal--0-0-0-0-c-0-iso10646-1,\

  -*-helvetica-medium-o-normal--*-*-*-*-*-*-*-*,\

  -*-gulim-medium-o-normal--*-*-*-*-*-*-ksc5601.1987-0,\

  -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\

  -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\

  -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\

  -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\

  -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\

  -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\

  -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\

  -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\

  -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\

  -*-kannada-medium-r-normal--*-*-*-*-*-*-iso10646-kan,\

  -*-burmese-medium-r-normal--*-*-*-*-*-*-iso10646-brm,\

  -*-buginese-medium-r-normal--*-*-*-*-*-*-iso10646-bgn,\

  -*-oriya-medium-r-normal--*-*-*-*-*-*-iso10646-ori,\

  -daewoo-mincho-medium-r-normal--*-*-*-*-*-*-ksc5601.1987-0"

  sans normal normal bold normal \

  "-misc-SimSun-bold-r-normal--0-0-0-0-c-0-gb2312.1980-0,\

  -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1,\

  -misc-SimSun-bold-r-normal--0-0-0-0-p-0-gbk-0,\

  -misc-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15,\

  -misc-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15,\

  -misc-SimSun-bold-r-normal--0-0-0-0-c-0-iso10646-1,\

  -*-helvetica-bold-r-normal--*-*-*-*-*-*-*-*,\

  -*-gulim-bold-r-normal--*-*-*-*-*-*-ksc5601.1987-0,\

  -*-clearlyu-medium-r-normal--*-*-*-*-*-*-iso10646-1,\

  -*-fixed-medium-r-normal--*-*-*-*-*-*-*-*,\

  -kaist-iyagi-bold-r-normal--*-*-*-*-*-*-johab-1,\

  -*-song ti-medium-r-normal--*-*-*-*-*-*-*-*,\

  -freetype-unitamil-medium-r-normal--*-*-*-*-*-*-iso10646-tam,\

  -*-devanagari-medium-r-normal--*-*-*-*-*-*-iso10646-dev,\

  -*-gujarati-medium-r-normal--*-*-*-*-*-*-iso10646-guj,\

  -*-gurmukhi-medium-r-normal--*-*-*-*-*-*-iso10646-gur,\

  -*-bengali-medium-r-normal--*-*-*-*-*-*-iso10646-bng,\

  -*-kannad
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,