设置中文locale
选择安装简体中文、繁体中文和英文的显示支持,安装完成,启动KDE,在其控制中心 look&&feel”选择“中国”,编码为zh_CN.gb2312.1980。Reboot,此时KDE已经可以显示出粗粗的中文。在gnome的system中直接选用locale chooser zh_CN,即可。
中文字体的安装
1、首先禁用xfs服务器。
运行Setup命令,在服务项中中止xfs随系统运行的特性。之所以禁用xfs服务器主要是因为xfs会自动更新字体目录下的fonts.dir文件,从而影响我们所做的修改。(mandrake8.1可以在起动时按i键,进入交互菜单中进行修改.也可以在KDE中的配置中修改.)
2、将选中的字体拷贝到相关的目录。
一般选用simsun.ttf为基本的字体(据说该字体为最精美的中文字体)。将这些字体拷贝到 /usr/share/fonts/default/TrueType下,如果还有其他字体可以用ttmkfdir >fonts.dir生成fonts.dir文件,将文件中和simsun相关的行去掉,并添加以下各列,注意修改,开始的字体数
simsun.ttf -microsoft-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
ai=0.3:simsun.ttf -microsoft-SimSun-medium-i-normal--0-0-0-0-p-0-gb2312.1980-0
ds=y:simsun.ttf -microsoft-SimSun-bold-r-normal--0-0-0-0-p-0-gb2312.1980-0
ds=y:ai=0.3:simsun.ttf -microsoft-SimSun-bold-i-normal--0-0-0-0-p-0-gb2312.1980-0
simsun.ttf -microsoft-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-1
ai=0.3:simsun.ttf -microsoft-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-1
ds=y:simsun.ttf -microsoft-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-1
ds=y:ai=0.3:simsun.ttf -microsoft-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-1
simsun.ttf -microsoft-SimSun-medium-r-normal--0-0-0-0-p-0-koi8-r
ai=0.3:simsun.ttf -microsoft-SimSun-medium-i-normal--0-0-0-0-p-0-koi8-r
ds=y:simsun.ttf -microsoft-SimSun-bold-r-normal--0-0-0-0-p-0-koi8-r
ds=y:ai=0.3:simsun.ttf -microsoft-SimSun-bold-i-normal--0-0-0-0-p-0-koi8-r
simsun.ttf -microsoft-SimSun-medium-r-normal--0-0-0-0-p-0-fcd8859-15
ai=0.3:simsun.ttf -microsoft-SimSun-medium-i-normal--0-0-0-0-p-0-fcd8859-15
ds=y:simsun.ttf -microsoft-SimSun-bold-r-normal--0-0-0-0-p-0-fcd8859-15
ds=y:ai=0.3:simsun.ttf -microsoft-SimSun-bold-i-normal--0-0-0-0-p-0-fcd8859-15
simsun.ttf -microsoft-SimSun-medium-r-normal--0-0-0-0-p-0-iso8859-15
ai=0.3:simsun.ttf -microsoft-SimSun-medium-i-normal--0-0-0-0-p-0-iso8859-15
ds=y:simsun.ttf -microsoft-SimSun-bold-r-normal--0-0-0-0-p-0-iso8859-15
ds=y:ai=0.3:simsun.ttf -microsoft-SimSun-bold-i-normal--0-0-0-0-p-0-iso8859-15
simsun.ttf -microsoft-SimSun-medium-r-normal--0-0-0-0-p-0-iso10646-1
ai=0.3:simsun.ttf -microsoft-SimSun-medium-i-normal--0-0-0-0-p-0-iso10646-1
ds=y:simsun.ttf -microsoft-SimSun-bold-r-normal--0-0-0-0-p-0-iso10646-1
ds=y:ai=0.3:simsun.ttf -microsoft-SimSun-bold-i-normal--0-0-0-0-p-0-iso10646-1
同时注意将文件第一行的数字相应改动,然后复制fonts.dir为 fonts.scale 。
3、设置字体路径和加载服务器
编辑/etc/X11/XF86Config-4文件(#表示注释行)。
Section "Files"
FontPath "unix/:7100"
FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
FontPath "/usr/share/fonts/default/ttfzh"(自己加的目录)
FontPath "/usr/share/fonts/default/TrueType"
FontPath "/usr/share/fonts/default/Type1"
EndSection
# Module loading section
Section "Module"
Load "dbe" # Double-buffering
Load "GLcore" # OpenGL support
Load "dri" # Direct rendering infrastructure
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extensions
Load "v4l" # Video4Linux
# Load "pex5" # PHIGS for X 3D environment (obsolete)
# Load "record" # X event recorder
# Load "xie" # X Image Extension (obsolete)
# You only need the following two modules if you do not use xfs.
# Load "freetype" # TrueType font handler
# Load "type1" # Adobe Type 1 font handler
Load "xtt"
EndSection
EndSection
一切正常的话,在mozilla中进入linuxeden.com,地址栏中就能看到,斜体的伊甸园.在gedit中seting-preferences中fonts/color中见到斜体选项.
--------------------next---------------------
阅读(577) | 评论(0) | 转发(0) |