FC4中文字体有些发虚,特别使用CRT的话,看久了眼睛特别累。以下内容都是网上查阅得到,绝对对其他版本有一定借鉴意义。
1.复制字体文件
MS的simsun等字体效果好,所以从Windows的fonts文件夹里,复制simsun.ttc、times.ttf、tahoma.ttf到/usr/share/fonts/local/TrueType,并将simsun.ttc 更名为simsun.ttf。中文的宋体全在simsun里面,对比度很好。其他两个字体是英文字体,靠要也行。
2.在命令行运行如下命令:
fc-cache /usr/share/fonts/local/TrueType
生成新的fonts.cache-1文件。
3.打开 /etc/fonts/fonts.conf,并且在说明亚洲字符集的注释前插入新字体说明。
< !--
Some Asian fonts misadvertise themselves as monospaced when in fact they are Undo
…… this magic by disabling the width forcing code -->
前面,插入:
< match target="font">
< test name="family">< string>SimSun< /string>< /test>
< edit name="antialias" mode="assign">< bool>false< /bool>< /edit>
< /match>
这样可以避免字体被过分平滑。
4.在 /etc/fonts/fonts.conf中,所有类似如下的地方,全部插入simsun字体:
……
< family>Kochi Mincho< /family>
< family>SimSun< /family> < !--增加这样的一行 -->
< family>AR PL SungtiL GB< /family>
……
< default>< family>serif< /family>< /default>
需要注意的是,simsun要插入到所有英文字体的最后面、非英文字体的最前面。
5.在 /usr/share/fonts/local/TrueType/fonts.dir和fonts.scale前面,插入字体配置语句。注意要修正第一行的数字,使其等于下面内容的行数。注意将新字体放在/usr/share/fonts/local/TrueType不会被自动修改。如果将字体及置文件放在缺省中文字体目录/usr/share/fonts/chinese/TrueType下,则系统重启后会自动修改字体配置文件,导致一些配置丢失。文件
片段如下:
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso10646-1
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-so8859-1
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-10
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-15
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-2
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-3
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-4
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-5
times.ttf -arphic technology co.-ar pl Times New Roman-medium-r-normal--0-0-0-0-p-0-iso8859-9
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso10646-1
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-so8859-1
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-10
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-15
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-2
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-3
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-4
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-5
tahoma.ttf -arphic technology co.-ar pl Tahoma-medium-r-normal--0-0-0-0-p-0-iso8859-9
simsun.ttf -arphic technology co.-ar pl simsun gb-medium-r-normal--0-0-0-0-c-0-ascii-0
simsun.ttf -arphic technology co.-ar pl simsun gb-medium-r-normal--0-0-0-0-c-0-iso10646-1
simsun.ttf -arphic technology co.-ar pl simsun gb-medium-r-normal--0-0-0-0-c-0-gb18030-0
simsun.ttf -arphic technology co.-ar pl simsun gb-medium-r-normal--0-0-0-0-c-0-gb2312-0
simsun.ttf -arphic technology co.-ar pl simsun gb-medium-r-normal--0-0-0-0-c-0-gbk-0
字体配置文件的每一行都说明字体的设置和定义,如粗体的宽度、斜体的倾斜度等,字体文件包括要用的2种英文字体和simsun中文宋体的配置信息。
6.最后一步,用simsun.ttf文件覆盖原来中文字体文件,
/usr/share/fonts/chinese/TrueType下的中文字体文件bkai00mp.ttf、bsmi00lp.ttf、gbsn00lp.ttf、gkai00mp.ttf或删除该目录下的所有字体文件。
完成上述步骤后,在Preferences(首选项)里的font(字体)里,不管是中文语言环境还是英文语言环境,都将字体设为英文,系统缺省使用宋体显示中文,这样中英文显示都很清晰,和Windows环境一样。
由 sen 发表于 January 2, 2007 05:49 PM