Ubuntu 5.04安装文泉译嵌入字体美化系统
上一篇 / 下一篇 2007-01-05 01:08:10 / 个人分类:Linux
OS:Ubuntu 5.04(Hoary Hedgehog)
;z)]}'DWI|%_-\4]0,Yvs
hiXc+|?$Y`0文泉译前几天发布正式版拉,终于等到了。嘿嘿~~下面我们来进行安装。首先我们先把字体包下载下来(wqy-bitmapfont栏下的0.5.0pcf和0.5.0bdf)http://sourceforge.net/project/showfiles.php?group_id=128192
*`7rJ.tI e051Testing软件测试网iZ.Ac9^CS
E
tar zxvf wqy-bitmapfont*.tar.gz
S/]"hb2]m)v:R/Y0
o-](uq!f,E+JVz0所有文件会被解压到./WenQuanYi目录下51Testing软件测试网2VY
h"S7yY}/bt8}0LI
将所有文件放到 /usr/share/fonts/Chinese/WenQuanYi (推荐使用此目录)下,在继续下一步之前请切换为root模式,然后继续^^!(su 或者sudo)
P'^d:agV`!i(V%o&IO0接着使用下面命令安装安装字体:51Testing软件测试网Vb a&y;U3hb6N\
cd /usr/share/fonts/Chinese/WenQuanYi/Bitmap/
6Ty$jhRw#aQ^)g0 mkfontdir
l%z2h |8l0u*S0 cp fonts.dir fonts.scale51Testing软件测试网5n
j1lo/H3k2U
xset +fp /usr/share/fonts/Chinese/WenQuanYi/Bitmap/
"?-tM:WGHBkP0 fc-cache51Testing软件测试网?6vXy+Y;yQ
至此字体安装完毕
$~j
B h J0接着我们修改fonts.conf,此文件位于/etc/fonts/下,在修改之前建议您先备份下这个文件,以免改错恢复,以下命令将fonts.conf备份为fonts.conf.bakup
*U@'G bO0cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bakup
%g,ofybKH5A0备份完毕我们开始大干一场吧(以下贴出本人的fonts.conf内容,对照着修改吧)51Testing软件测试网6rC3a_0h E
-------------------------------------------------------- ------------------------------------
B;^*S;E\4]0<?xml version="1.0"?>
r6wXD`6d0<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
!d-s/WTd?s!V9A+A;v\0<!-- /etc/fonts/fonts.conf file to configure system font access -->
cec)dz-rYA
aFk0^0<fontconfig>51Testing软件测试网JW4h _Rvwl
{fl ^@(e D%d0<!--
~l!n,TO9I
B#z0 DO NOT EDIT THIS FILE.51Testing软件测试网"y|S&~lE M#H$D(e
IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.51Testing软件测试网%ej+\m X6u;C6O)D
LOCAL CHANGES BELONG IN 'local.conf'.
i9rjcSR4H0
SDokp*H0 The intent of this standard configuration file is to be adequate for51Testing软件测试网Y8pw!N#GEC&Hy
most environments. If you have a reasonably normal environment and51Testing软件测试网^r2FWYt w@G7|
have found problems with this configuration, they are probably
i+LgxM-McR0 things that others will also want fixed. Please submit any
NSqz6A*~0 problems to the fontconfig bugzilla system located at fontconfig.org
`s5kvY051Testing软件测试网Q*tx8zr*X
Note that the normal 'make install' procedure for fontconfig is to
G'Gc@!V5WJ/G[8d0 replace any existing fonts.conf file with the new version. Place51Testing软件测试网'Ke4v|4w~
K u'~P
any local customizations in local.conf which this file references.51Testing软件测试网Q+m3I!oa
51Testing软件测试网(q^.M*r9TouLFc\*Y
Keith Packard51Testing软件测试网;S e$X3y1u
-->51Testing软件测试网[2PG6t"CD V
^nY}5_ T@kP0 <dir>/usr/share/fonts</dir>
0r:\!}-J)@0 <dir>/usr/X11R6/lib/X11/fonts/Type1</dir> <dir>/usr/local/share/fonts</dir>51Testing软件测试网{(sMIS/r8j0nk
<dir>~/.fonts</dir>
rh X#EWsyC0
6Bw"nd_kry0<!--51Testing软件测试网9s+b)I#_ NB%h@$F
Accept deprecated 'mono' alias, replacing it with 'monospace'51Testing软件测试网'y!~1J.S k
_F
-->51Testing软件测试网u,Y*?(plCm2koS
<match target="pattern">51Testing软件测试网3?/N_u(D-uq%_
<test qual="any" name="family">51Testing软件测试网.FMg0|G3}"x4B;VT
<string>mono</string>
c#^3i7C+C$t1UZ0 </test>
L6R(vF\&P:C0 <edit name="family" mode="assign">51Testing软件测试网+@r2bo!H^
<string>monospace</string>51Testing软件测试网Vm,}"wv
</edit>
FC
n
^
~0 </match>51Testing软件测试网;[;a'lvT
51Testing软件测试网u!? Oc1v*WM,y-jVf
<!--51Testing软件测试网W"lR k9zu k"I
Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'51Testing软件测试网L}Q5~-?
k9z
-->51Testing软件测试网
|.so w:y)V
{neT0f
<match target="pattern">51Testing软件测试网5l%FI_gX
[;Dhg1?2@
<test qual="any" name="family">51Testing软件测试网#@KI PE5{F3s0e
<string>sans serif</string>51Testing软件测试网|%H~#?*Q!ZF1T-Q
</test>
8L-zbE t;E(e%I'n~0 <edit name="family" mode="assign">
JMf/\,~m0 <string>sans-serif</string>51Testing软件测试网MRi5|PM
</edit>51Testing软件测试网/r/y| yD#j
</match>51Testing软件测试网$T+M*cn8}~.l8D
s k.X1E9}K
s0<!--
s%EguE
}0S0 Accept deprecated 'sans' alias, replacing it with 'sans-serif'51Testing软件测试网a*l0A-^"B]&`
-->
6xrtLx?!b{cJD0 <match target="pattern">
SKR[,b3Do.K0 <test qual="any" name="family">
_OCRmZ#F0 <string>sans</string>
't:w2zJ0P8Av
@r0 </test>
!wV_5}#^0 <edit name="family" mode="assign">51Testing软件测试网8R1E+yyQ1Rm'{d
<string>sans-serif</string>
w0z0y{:pv'KE!D0[)n0 </edit>
C8z8H6F:l$_~ib0 </match>
#uk;r?9v/jqE051Testing软件测试网dGVJ\6Pn
<!--51Testing软件测试网1Hw(vA H
@1U.D/mFl
Mark common families with their generics so we'll get51Testing软件测试网:_3q!C8?0g3_m
something reasonable51Testing软件测试网,y\5p4a@.d#Z;S u(E2h
-->
7U"Ha9z2Js8^)Q0
&v/kIXR6|+Y
x\o0<!--51Testing软件测试网2x1[}m1|h0~0V4D6Q
Serif faces51Testing软件测试网G'}%U9Oe^#`{QO
-->51Testing软件测试网^qc-l!z4yK
<alias>51Testing软件测试网0b/on6CeR
<family>Bitstream Vera Serif</family>51Testing软件测试网(_/tH9o:ush7sXK
<family>WenQuanYi Bitmap Song</family> <!-- added it-->
`!V$K/Z\)L[0 <family>Vera Sans YuanTi</family>
7j2jUz$c-S3}{0 <family>Times</family>51Testing软件测试网[#n[,E
jE(E#O
<family>Times New Roman</family>51Testing软件测试网l(CGp5M?+G
<family>Nimbus Roman No9 L</family>