Ubuntu 5.04安装文泉译嵌入字体美化系统
上一篇 / 下一篇 2007-01-05 01:08:10 / 个人分类:Linux
p5Y/Rq'W0OS:Ubuntu 5.04(Hoary Hedgehog)
"i9QW ~Kme051Testing软件测试网 PZj4vN5H文泉译前几天发布正式版拉,终于等到了。嘿嘿~~下面我们来进行安装。首先我们先把字体包下载下来(wqy-bitmapfont栏下的0.5.0pcf和0.5.0bdf)http://sourceforge.net/project/showfiles.php?group_id=12819251Testing软件测试网$X7X;B3n&R6^
T1_'r)g
51Testing软件测试网Yk w)B5\
"J5a yJ%}'f0tar zxvf wqy-bitmapfont*.tar.gz
j|*u BS!A3A0
!K^(flm+mb(G!aWAJ/q;r0所有文件会被解压到./WenQuanYi目录下
8|d%_ L1J$]Z0将所有文件放到 /usr/share/fonts/Chinese/WenQuanYi (推荐使用此目录)下,在继续下一步之前请切换为root模式,然后继续^^!(su 或者sudo)51Testing软件测试网!IF4jW'u2DOq'M!J\(q
接着使用下面命令安装安装字体:51Testing软件测试网&\xZM/rS(p$_
cd /usr/share/fonts/Chinese/WenQuanYi/Bitmap/51Testing软件测试网-~H+M-qAd%G1T
mkfontdir
r.{R$|.b!r0 cp fonts.dir fonts.scale51Testing软件测试网tTz0T6I6Xa,N
xset +fp /usr/share/fonts/Chinese/WenQuanYi/Bitmap/51Testing软件测试网[BUY%S7OO
fc-cache
,FDPJ!s9c0至此字体安装完毕
e+LFd(Xxag+n;d/q0接着我们修改fonts.conf,此文件位于/etc/fonts/下,在修改之前建议您先备份下这个文件,以免改错恢复,以下命令将fonts.conf备份为fonts.conf.bakup
]*k&O ht0cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bakup
t.a^qF0备份完毕我们开始大干一场吧(以下贴出本人的fonts.conf内容,对照着修改吧)51Testing软件测试网(Mc K(d:dg
-------------------------------------------------------- ------------------------------------51Testing软件测试网dG!JhF
|Q&HJ&{
q5c
<?xml version="1.0"?>51Testing软件测试网zN.W
J|$zc
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3x4mjl*S9q5{9W0<!-- /etc/fonts/fonts.conf file to configure system font access -->51Testing软件测试网.n!st6EK(X
<fontconfig>51Testing软件测试网u&S+x(e7g
B4\*ds
$A5z:g\$ZT;}n0<!--51Testing软件测试网B"j;n8Y+T#?4p{D
DO NOT EDIT THIS FILE.
Adb&w-\VAj8Ho0 IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
G.n
\\B0 LOCAL CHANGES BELONG IN 'local.conf'.51Testing软件测试网cw4UF4A.x KM
gu Ya:_,n8B!Z0 The intent of this standard configuration file is to be adequate for51Testing软件测试网n2_&dz9e,i6U-_x
most environments. If you have a reasonably normal environment and51Testing软件测试网%d.hj3sUk3^[
o
have found problems with this configuration, they are probably51Testing软件测试网A ij8i*Gc
G$A
things that others will also want fixed. Please submit any
5^7q5\%Tog)`R0 problems to the fontconfig bugzilla system located at fontconfig.org51Testing软件测试网&w*M3t2R"@Z7p6l
51Testing软件测试网$nL,Di1Np8ev
Note that the normal 'make install' procedure for fontconfig is to51Testing软件测试网0k!p
uV5O6tTL*ss
replace any existing fonts.conf file with the new version. Place51Testing软件测试网`8bzZ](Ed4g?
any local customizations in local.conf which this file references.51Testing软件测试网8rn%j/~_-M
51Testing软件测试网2j*nQ|\`$ah
S
Keith Packard
3~
W`*S3^qTo"z'\0-->51Testing软件测试网g4j;`-WO$I_WLh4yPl
51Testing软件测试网5f y/W C-N8u\Yf
<dir>/usr/share/fonts</dir>
,bVEw0P{w0 <dir>/usr/X11R6/lib/X11/fonts/Type1</dir> <dir>/usr/local/share/fonts</dir>
*o dgGYqfe+_0 <dir>~/.fonts</dir>
0`3N5er~
I!C { ]_0
P+v#g
`l[
{0<!--51Testing软件测试网%\/k0P{%~;t6l P0E
Accept deprecated 'mono' alias, replacing it with 'monospace'51Testing软件测试网!ui svbP
jJ?M
-->
\)uQK
Tg2E/pH)g0 <match target="pattern">
Us1?,AmIX\*e0 <test qual="any" name="family">51Testing软件测试网Ow
jav
<string>mono</string>
-})J^z\Z c8o{:bO$F0 </test>
tW,nTh3kRth0 <edit name="family" mode="assign">51Testing软件测试网+o&Z
f5P F
ha
<string>monospace</string>51Testing软件测试网:a:d`J9Fe
</edit>
:_Y:@&O
agX0 </match>51Testing软件测试网 L9r5C#RR
51Testing软件测试网F`%\!Q&`(ya8nZ|#X)J
<!--
6f4gpVH2e
}0 Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
]:Q#k-ia]
Zw0-->51Testing软件测试网@8Aa0b9|s*@7]W
<match target="pattern">51Testing软件测试网
Tr7v{(m*bEwOQ
<test qual="any" name="family">
E[j0zX@Wx0 <string>sans serif</string>51Testing软件测试网2M\~ [zY
</test>
^8\ |MgK!g(Q0 <edit name="family" mode="assign">51Testing软件测试网Vd;|k$G
<string>sans-serif</string>51Testing软件测试网-w1qw:\5y} O
</edit>
HKK5Za*C b8G-^0 </match>51Testing软件测试网-ldp
~ _+c%KE
51Testing软件测试网eH;_/}`
?k%AkU
<!--51Testing软件测试网uG-s;m6C!\
Accept deprecated 'sans' alias, replacing it with 'sans-serif'51Testing软件测试网
_"nV;x&R'MG
-->51Testing软件测试网$] M D(pY'Z
<match target="pattern">51Testing软件测试网eL5foq O'qaY
<test qual="any" name="family">
*bW:MS,NuhJJ L0 <string>sans</string>
|S%i{'[V0 </test>51Testing软件测试网 _| GC+q@1]
<edit name="family" mode="assign">51Testing软件测试网3S*q1h&h(j8{6D
<string>sans-serif</string>51Testing软件测试网&i8A@qAZ)S
</edit>
ZY4IE5a)Zq0 </match>51Testing软件测试网
f J|gU/s"^O
51Testing软件测试网*X9E'Au Zo]6e6x
<!--51Testing软件测试网q/M~0C}L-@N7q-a!g#I
Mark common families with their generics so we'll get
.LkNZ"`-Q&v0 something reasonable51Testing软件测试网\x:s)?
y&Jl9t5|
-->
D)j)e`~&P0
!o]Ot
\0<!--
[_qN4?};VLO$~\0 Serif faces51Testing软件测试网0Q
c!El-]&I+O TT%l2`H
-->51Testing软件测试网Lk+q&|6Xf
<alias>51Testing软件测试网#aj:d2{(rd
<family>Bitstream Vera Serif</family>51Testing软件测试网9Ca7b"{e,A;Hl
<family>WenQuanYi Bitmap Song</family> <!-- added it-->
QF
g0vw0 <family>Vera Sans YuanTi</family>
F-gOs5vGm\0 <family>Times</family>
e#W;MN|9T3ZR0 <family>Times New Roman</family>51Testing软件测试网|-l7S L/C;s
<family>Nimbus Roman No9 L</family>51Testing软件测试网BLv{A*q~
<family>Luxi Serif</family>
)\*y4S*p os3p,C7e0 <family>Kochi Mincho</family>51Testing软件测试网;ZgPUJ8x3e-UqL
<family>AR PL SungtiL GB</family>51Testing软件测试网iNf
\S'k
<family>AR PL Mingti2L Big5</family>51Testing软件测试网+g-F{t4s
<family>Baekmuk Batang</family>51Testing软件测试网-p}W/y"k.G/}"~
<family>FreeSerif</family>
9w^"P&DT0 <default><family>serif</family></default>51Testing软件测试网8r-zrF
|`
</alias>
w/{"j8ap!gEz0<!--51Testing软件测试网ZEb4|pJ|Q
Sans-serif faces51Testing软件测试网l*YB)jS^
K*wm
-->
-D3EUNb9H
U0WZ0 <alias>51Testing软件测试网:~f~|}0d@!EJP
<family>Bitstream Vera Sans</family>51Testing软件测试网,geLJ3r*j&u"f N
<family>WenQuanYi Bitmap Song</family> <!-- added it-->
g$LbD%|0 <family>Vera Sans YuanTi</family>
g3O(o5[_&WZ(l
X4~0 <family>WenQuanYi Bitmap Song</family> 51Testing软件测试网zaZ~%l
<family>Helvetica</family>
c9zc,wsy8f0 <family>Arial</family>
.@kB kB,Z4~:jdO U/E0 <family>Verdana</family>51Testing软件测试网X3o5A!V5b1]H4EN
<family>Nimbus Sans L</family>51Testing软件测试网#mMN:a6X^4t~
<family>Luxi Sans</family>
rE`*]4z2n MTK[3D0 <family>Kochi Gothic</family>
p+?,Z*o1b*E s0 <family>AR PL KaitiM GB</family>51Testing软件测试网*U'U6W%Kaiv
<family>AR PL KaitiM Big5</family>51Testing软件测试网)@#J P$@b\ D'I#}
<family>Baekmuk Dotum</family>
#Qx oI|L4r0 <family>SimSun</family>51Testing软件测试网T_
t&uz3q
<family>FreeSans</family>
C T!{R,z1bV d9i(c0}U0 <default><family>sans-serif</family></default>51Testing软件测试网4^7x V
l?Ub
</alias>51Testing软件测试网wQ#t-k$Y*[p
<!--
iP mCz1I;LFT0 Monospace faces
K-f`fD9p0 -->51Testing软件测试网6V&I+n?f5`
<alias>
#zE N.^/f-gTp9I{2j0 <family>Bitstream Vera Sans Mono</family>
5tZCp}G0 <family>WenQuanYi Bitmap Song</family> <!-- added it-->
8xPeaYn0 <family>Vera Sans YuanTi Mono</family> 51Testing软件测试网/lyo0W4dM6u
<family>Courier</family>51Testing软件测试网+BR"[!KL
w i;T$^
<family>Courier New</family>
\r$w%Le y0 <family>Andale Mono</family>51Testing软件测试网%y7QDr D
<family>Luxi Mono</family>51Testing软件测试网]}#B0\(g
<family>Nimbus Mono L</family>51Testing软件测试网%| I lW)XCo2ce
<family>SimSun</family>51Testing软件测试网:@)z%n
Z8J-L
<family>FreeMono</family>51Testing软件测试网pISC
M"TDL
<default><family>monospace</family></default>51Testing软件测试网r"oG!F c0\h3J
</alias>51Testing软件测试网f[$f*f l%Hq8Q
<!--51Testing软件测试网
r*T(^\(bn z
If the font still has no generic name, add sans-serif
}:X FQA%i,q0 -->
} nMF {9|$L#A0 <match target="pattern">51Testing软件测试网O0v ?'C;R`qbQR-zb
<test qual="all" name="family" compare="not_eq">
x\$H[3f6kXY L"f3X0 <string>sans-serif</string>
_&R"I!i7Th|L`0 </test>
7Dq"t/Z
u0 <test qual="all" name="family" compare="not_eq">51Testing软件测试网S i4t'^!np
<string>serif</string>
.D*GM
x;Y0 </test>
*m8ikT-C0 <test qual="all" name="family" compare="not_eq">
:Wf0b4m]W6x!]0 <string>monospace</string>
hv7d}"]c0 </test>