Things change, roll with the punches.Oh, yeah. Go for it man, jump off the high dive, stare down the barrel of the gun, pee into the wind!

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软件测试网Ykw)B5\

 解压下载下来的文件包
"J5a yJ%}'f0tar zxvf wqy-bitmapfont*.tar.gz
j|*uB S!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+L Fd(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软件测试网d G!J hF |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-\ VAj8H o0    IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
G.n \\B0    LOCAL CHANGES BELONG IN 'local.conf'.51Testing软件测试网 cw4UF4A.x KM

guYa:_,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>
*odgGYqfe+_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
-->
\)uQ K 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 f5PF 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*bEw OQ
        <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软件测试网eL5fo qO'q aY
        <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软件测试网 fJ |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
.L kNZ"`-Q&v0  something reasonable51Testing软件测试网\x:s)? y&Jl9t5|
-->
D)j)e`~&P0
!o]Ot \0<!--
[_qN4?};V LO$~\0  Serif faces51Testing软件测试网0Q c!El-]&I+OTT%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*pos3p,C7e0      <family>Kochi Mincho</family>51Testing软件测试网;ZgPUJ8x3e-Uq L
      <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软件测试网 Z Eb4| pJ|Q
  Sans-serif faces51Testing软件测试网l*YB)jS^ K*wm
 -->
-D3EUNb9H U0WZ0   <alias>51Testing软件测试网:~f~ |}0d@!EJ P
      <family>Bitstream Vera Sans</family>51Testing软件测试网,geLJ3r*j&u"fN
      <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>
.@kBkB,Z4~:jdOU/E0      <family>Verdana</family>51Testing软件测试网X3o5A!V5b1]H4EN
      <family>Nimbus Sans L</family>51Testing软件测试网#mMN:a6X^4t~
      <family>Luxi Sans</family>
rE`*]4z2nMTK[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>
#zEN.^/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软件测试网p ISC M"TDL
      <default><family>monospace</family></default>51Testing软件测试网r"oG!F c0\h3J
   </alias>51Testing软件测试网f[$f*fl%Hq8Q
<!--51Testing软件测试网 r*T(^\(bn z
  If the font still has no generic name, add sans-serif
}:XFQA%i,q0 -->
} nMF{9|$L#A0    <match target="pattern">51Testing软件测试网O0v?'C;R` qb QR-zb
        <test qual="all" name="family" compare="not_eq">
x\$H[3f6kXYL"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>
OX&B-P&AP_0        <edit name="family" mode="append_last">51Testing软件测试网As{s9]`l-e L
            <string>sans-serif</string>
%|b0o ZB'a'Zy,mS0        </edit>51Testing软件测试网7D`/t\mC-NR'h5H9s
    </match>
(~"^4n&z]5PoTc0   51Testing软件测试网C7j*U)g(G!s.i
<!--
+Bn$T0I!a.I8`M }#|)Z0  Some Asian fonts misadvertise themselves as monospaced when51Testing软件测试网p*v.~3E@(O0s
  in fact they are dual-spaced (half and full).  This makes
B9? L(x/BvJ0  FreeType very confused as it forces all widths to match.51Testing软件测试网7B"n9l7[WR
  Undo this magic by disabling the width forcing code -->51Testing软件测试网nQ&a#fLtql~f
    <match target="font">
Vb4TikdI-\ JA0        <test name="family"><string>GulimChe</string></test>51Testing软件测试网c's jVX v+Ug8Z5N
        <edit name="globaladvance"><bool>false</bool></edit>51Testing软件测试网V7B,q8WU9k&d_
    </match>51Testing软件测试网XGR$];f2KP:]a;`
   
~P`H:U0`O }m }0    <match target="font">
wf&i0Re0        <test name="family"><string>DotumChe</string></test>51Testing软件测试网+O\ IwR2S2doW0Xi
        <edit name="globaladvance"><bool>false</bool></edit>
!b5\Doulf0    </match>51Testing软件测试网j_q8IKx
51Testing软件测试网 j~vd"[iw+G3Y
    <match target="font">
*oA5l-@s iW0        <test name="family"><string>BatangChe</string></test>
i u(I;L[3VRt0        <edit name="globaladvance"><bool>false</bool></edit>51Testing软件测试网O~!f*pp U
    </match>
?y h9t\*RZT051Testing软件测试网2es;Q1a\8pnw*n
    <match target="font">51Testing软件测试网q)Sj){1OB(e
        <test name="family"><string>GungsuhChe</string></test>51Testing软件测试网E+G7K_x*Uh6DF+]
        <edit name="globaladvance"><bool>false</bool></edit>51Testing软件测试网0EH @ @ ~S kFKTm2_o
    </match>51Testing软件测试网(zFsF(`o8?U.e

8f9T*vw)_Esc~|0<!--
U$uw.t:|%a0    The Bitstream Vera fonts have GASP entries suggesting that hinting be51Testing软件测试网Y%XTi;b:S
    disabled below 8 ppem, but FreeType ignores those, preferring to use
%\2Gj_B)l0    the data found in the instructed hints.  The initial Vera release
[;|_I5P\&n;e(k0    didn't include the right instructions in the 'prep' table. Fix this51Testing软件测试网w _3mQ,lF+v3W
    by disabling hinting manually at smaller sizes (< 8ppem)51Testing软件测试网g1s#Ne X4xT4U;Xg
 -->
DsQ'pk}e5te0   51Testing软件测试网|zPNy N*@
 51Testing软件测试网tPK-@EM1{
   <match target="font">
1r pT XFbt} ?0      <test name="family">
k ~bn T9A*b^y9o)?0o0         <string>WenQuanYi Bitmap Song</string>  <!-- edit it-->51Testing软件测试网J6GPa_%Zr^
      </test>
2v,cmD,E a*[r&~0      <test name="pixelsize" compare="less">51Testing软件测试网TL)k*lc+g[V
         <double>7.5</double>51Testing软件测试网5]A*e Ikc
      </test>
T%tweaW af0      <edit name="hinting">
Y;@/j;@2y0         <bool>false</bool>51Testing软件测试网0zm%L G*Kw:U
      </edit>    
8p,E:BQ\jr4N0   </match>
rL*^cu;[^$W0  
A _H Q-m5f(v0   <match target="font">
MS[nz g0      <test name="family">
!Lw!S7Vi m1RL0         <string>WenQuanYi Bitmap Song</string> <!-- edit it-->51Testing软件测试网^Ct5n\)F7W(tw
      </test>
DZ R"m-lr-k2p3QK)V0      <test name="pixelsize" compare="less">
X4[Zi0h0^?2v0         <double>7.5</double>51Testing软件测试网;Q5~li-NC7]/Q5?4j
      </test>51Testing软件测试网Ur1Z/_X%U
      <edit name="hinting">
)nu b wvrF5`U0         <bool>false</bool>51Testing软件测试网?rU @^p#y-p
      </edit>
Wx9^x7p-sS5u0   </match>
1ic ^5_1NAu1Zyw0  51Testing软件测试网G| o.XD-I z#Itl
   <match target="font">
I;D`9No.hb0@0y^Ev0      <test name="family">51Testing软件测试网o'r I%gS \O;A1|
         <string>WenQuanYi Bitmap Song</string> <!-- edit it-->51Testing软件测试网K*^:B)m/f
      </test>
8FR(QLfq2P4f0      <test name="pixelsize" compare="less">
+_5Df+q$xM`3Z0         <double>7.5</double>51Testing软件测试网v-m;} }\ojU
      </test>
mH8|6_Y%z g l ?0      <edit name="hinting">
-oP\)gKX,ES%lc0         <bool>false</bool>51Testing软件测试网7Y D,n#xyx yT9}
      </edit>
(ahA9W,Q1bH0   </match>
a Y:LP%GD[0  
oh.|)N9t0   
{;] oV3C"Cs0<!--51Testing软件测试网t.h+]W{
  Load local system customization file
h lO LP3L`0-->51Testing软件测试网2mc$sl4Fi AqQ[
    <include ignore_missing="yes">local.conf</include>
2v}9G:b3pl5m051Testing软件测试网1Q8X#Davn0qV
<!--
[{n/w&K0v"y[0  Load per-user customization file51Testing软件测试网h#r.Z8i0Y:@6S%w
-->
K0|~"A?1MF0    <include ignore_missing="yes">~/.fonts.conf</include>
K2\KiBm"l Y-A051Testing软件测试网*Z;[Q!Q6T+Yv i!lL
<!--
2K%`v'n;?-`;V`0  Alias well known font names to available TrueType fonts51Testing软件测试网@j2mG2I,[] G
-->51Testing软件测试网#zw%@2rp%^(D8F
    <alias>
_z^Q&S H+X l._3E0        <family>Times</family>51Testing软件测试网 ? {e6d7kW"c
        <accept><family>Times New Roman</family></accept>51Testing软件测试网6fs-Q+U)B*B(w uYD@
    </alias>
D8s}1Z,_Tx0    <alias>
cRg$@.hY#OHBA/I0        <family>Helvetica</family>
(G[|'DK7in0        <accept><family>Verdana</family></accept>51Testing软件测试网6J)O }~m-R!x?#pY-t
    </alias>51Testing软件测试网S0H^Bt&`p\
    <alias>
.LRB8v-E3u0        <family>Arial</family>51Testing软件测试网2HS%Xw@ _Yo9V`
        <accept><family>Verdana</family></accept>
+~;n5j7\zd8E0    </alias>51Testing软件测试网&T7YGW0EmY
    <alias>
V!h&T)m#v1Qy E0        <family>Courier</family>51Testing软件测试网P+Ml mO!v1GX']&C
        <accept><family>Courier New</family></accept>
k[5Q!F6Y U M$M%WTX0    </alias>
b_6x{5I`_L051Testing软件测试网DUj aE,j
<!--51Testing软件测试网 {0t2E$G-x6yK%u![
 Check user preference to avoid bitmap fonts and replace51Testing软件测试网g:C,f T8z g:p]
 bitmap face names with equivalent scalable fonts51Testing软件测试网 t` K4{ I:A9^
 -->51Testing软件测试网p5e'A+RbL m7[[

? X4{_%K*U-w)v0    <match target="pattern">51Testing软件测试网/?Rx%~9E2j
            <test name="prefer_outline">
2LSa)~X ~l0                    <bool>true</bool>51Testing软件测试网+CK}2bYrxM
            </test>51Testing软件测试网uq5C/X n1wZ O@"S
            <test name="family">
x"];r4~1on,lpxC0                    <string>Helvetica</string>
2D;AYcv0            </test>51Testing软件测试网.Ev6E_~`d1p|
            <edit name="family" mode="prepend" binding="same">
RCd2pQO0                    <string>Arial</string>51Testing软件测试网$P7\ O$n@ {;Uj
            </edit>51Testing软件测试网)@ nP%OG2aeuA
    </match>51Testing软件测试网aAG$_.~8PZC e

N ^$SX^p0    <match target="pattern">
/g Z9Bd#y9e9q.Cx0            <test name="prefer_outline">51Testing软件测试网5a2I$QjB d.P$f~
                    <bool>true</bool>
#|'R(W'V&D`k3| ~i0            </test>51Testing软件测试网 dh+wAy$^ ]iVe
            <test name="family">
*xz_/M!S+q4x0                    <string>Times</string>
F;fwbr%Z s.Y0            </test>
S'P9D!UY0            <edit name="family" mode="prepend" binding="same">51Testing软件测试网*Cw^$M0cwC8o
                    <string>Times New Roman</string>51Testing软件测试网? {3]aM-?E*z bt
            </edit>51Testing软件测试网(O[2_[^J#~RN\&O
    </match>51Testing软件测试网?YS9zyO:Uk9u
<!--51Testing软件测试网6u pr[sGD
  Provide required aliases for standard names51Testing软件测试网9L,b&A0D [
-->
ypt~d0   <alias>
8Q#W-@oY7Bm4I0      <family>serif</family>
8@yw9| S7l{!I0      <prefer>
aH-Of {J(n0         <family>Bitstream Vera Serif</family>
i.z e'F7B_2X(H Ho0     <family>WenQuanYi Bitmap Song</family>     <!-- added it-->51Testing软件测试网t-H*xl9i#F
         <family>Vera Sans YuanTi</family>                       
3^,@eJ sX1r2Q0         <family>Times New Roman</family>51Testing软件测试网 GQw?e niY0i+E
         <family>Nimbus Roman No9 L</family>51Testing软件测试网 b(x(k ye|
         <family>Luxi Serif</family>51Testing软件测试网Rf/T(U#}#]\)K
         <family>Times</family>
[ t9J-O+W,O2Q3nf0         <family>Frank Ruehl</family>51Testing软件测试网\mU"Lg)U
         <family>Kochi Mincho</family>
CQ1i$]f2G i0         <family>AR PL SungtiL GB</family>51Testing软件测试网V aM(x%^;_
         <family>AR PL Mingti2L Big5</family>51Testing软件测试网2[8?1],[{7A/i;aE
         <family>Baekmuk Batang</family>
I0H$\o2{;b9\$t!B0         <family>FreeSerif</family>
6fVY4ep:FO n0      </prefer>
kd?9dS#iL;Y&y*OD0   </alias>
eK x4ffE0   <alias>51Testing软件测试网.?8Y1W;`^ y*I'Z$M
      <family>sans-serif</family>
%}#J'Xp6jX&?Z1_5u;J0      <prefer>
"i G-sAU%yb(@0         <family>Bitstream Vera Sans</family>51Testing软件测试网eWVY{ }9S
         <family>WenQuanYi Bitmap Song</family>     <!-- added it-->
"[4K!x:G2WR0         <family>Vera Sans YuanTi</family>                       
\\G)]6r9i0         <family>Verdana</family>51Testing软件测试网Df!c7t!L|{ T4x8ynM
         <family>Nimbus Sans L</family>51Testing软件测试网\$ySj7n{&C;vDF
         <family>Luxi Sans</family>51Testing软件测试网 S8W2\g(?C*Pi
         <family>Arial</family>
J Er*b&fod4`'e0         <family>Helvetica</family>
5t|x1AG.X'y}ND0         <family>Nachlieli</family>51Testing软件测试网 bnAo:x}5K.eP#PY
         <family>Kochi Gothic</family>
e4`;wR-b-x o0         <family>AR PL KaitiM GB</family>
1k+i.B4F e.bI]0         <family>AR PL KaitiM Big5</family>51Testing软件测试网6M)H\oy.S'x_Qd9n'Y
         <family>Baekmuk Dotum</family>51Testing软件测试网"v_tj;M)n m j"VD6z}
         <family>SimSun</family>
I.O'a_F+?CkJ0         <family>FreeSans</family>51Testing软件测试网 UUml}*fS/j)l
      </prefer>
v&QjA f5H0   </alias>51Testing软件测试网T|'b1\1B\h XN
   <alias>51Testing软件测试网~XU6k|v su
      <family>monospace</family>51Testing软件测试网Z+V5u`5{#VFf+j
      <prefer>51Testing软件测试网7\UZ0A `;J x_'W!g
         <family>Bitstream Vera Sans Mono</family>51Testing软件测试网%}d+aisv8Pgu
     <family>WenQuanYi Bitmap Song</family>     <!-- added it-->
3vp{6I;b;N0         <family>Vera Sans YuanTi Mono</family>                       
@\%aB#Ux0         <family>Andale Mono</family>51Testing软件测试网s1`R DHAt#Lq(R1l
         <family>Courier New</family>
Ro"vXd _ X-O0         <family>Luxi Mono</family>
{J3K4u%p+DU:\L0         <family>Nimbus Mono L</family>
.R i8N%qpG%]*^e/c0         <family>Miriam Mono</family>51Testing软件测试网qU]/e m V&z d6a
         <family>Kochi Gothic</family>
2\[4P6F,g~0         <family>AR PL KaitiM GB</family>51Testing软件测试网+Sf5q5U/k5W
         <family>Baekmuk Dotum</family>51Testing软件测试网Pr2K:g"Q z`?
         <family>FreeMono</family>
Y/~9p*b1A o0V n(UM0      </prefer>
&yl9Wzh F0   </alias>51Testing软件测试网 \RSA{#z

:v#g8O I8pA0<!--
8ga!Ms2O&D/h5a(tS0 Artificial oblique for fonts without an italic or oblique version
ouU-BAW`0 -->
q+l6_ I+k0 51Testing软件测试网2QoBJ]H"~3?
    <match target="font">
bH2HP%o~"G GLT0        <!-- check to see if the font is roman -->
e6Hj-R3a M*Yi&m0        <test name="slant">
Utz4R9T1a9J0            <const>roman</const>
X4tq },H!jZ A.[&D2k0        </test>
9C:cox9}0        <!-- check to see if the pattern requested non-roman -->51Testing软件测试网Te/HB mzpx
        <test target="pattern" name="slant" compare="not_eq">
eT.H1_.`9M3F'A0            <const>roman</const>51Testing软件测试网`I];np_J.Uo
        </test>
j3N#l,R"q C2j0        <!-- multiply the matrix to slant the font -->51Testing软件测试网U5c?#a"uJyT}N
        <edit name="matrix" mode="assign">
2j:Rr;r$|GQX0            <times>51Testing软件测试网0k }jmm%@#Din9Z
                <name>matrix</name>51Testing软件测试网Y"oD!n*~4s
                <matrix><double>1</double><double>0.2</double>51Testing软件测试网P5u&GS![4mD
                    <double>0</double><double>1</double>51Testing软件测试网NO:Id#A!d*h-IGNFz/bv
                </matrix>
d/`sW!\l0            </times>
8o@ jUn0        </edit>
TN'E9E1JR8M$E;mG~#h0        <!-- pretend the font is oblique now -->51Testing软件测试网a._V(m6[:L:F2yVB(k
        <edit name="slant" mode="assign">51Testing软件测试网R#A)w MeH"H._nh5Q
            <const>oblique</const>
4u*K l&Gmb0        </edit>
F{1W"@(`-xh0    </match>
`v8HEEfz/K0
:r@)h0G u|3k0    <config>51Testing软件测试网U7_McI0jvm}
<!--51Testing软件测试网 V?O,H4V;o
  These are the default Unicode chars that are expected to be blank
bEI:U'`0  in fonts.  All other blank chars are assumed to be broken and51Testing软件测试网gA,Q?:`B7t b.~J
  won't appear in the resulting charsets
g5Wf1W)DS C0 -->
)`oEW+J{,R0        <blank>
b2? O~8Q D:i0            <int>0x0020</int>    <!-- SPACE -->
2jc,kt o`,b#c0            <int>0x00a0</int>    <!-- NO-BREAK SPACE -->
&i%zQ6~$xm}P@mI/_0            <int>0x00ad</int>    <!-- SOFT HYPHEN -->51Testing软件测试网Ic+j&~gG8A:eG8i
            <int>0x115f</int>    <!-- HANGUL CHOSEONG FILLER -->
p7}.fi,j] z\C-F~'B0            <int>0x1160</int>    <!-- HANGUL JUNGSEONG FILLER -->
IB d%kcto#s0W0            <int>0x1680</int>    <!-- OGHAM SPACE MARK -->
IvD&M0e Iz*{E0            <int>0x2000</int>    <!-- EN QUAD -->51Testing软件测试网 eI$o:n%m
            <int>0x2001</int>    <!-- EM QUAD -->51Testing软件测试网4| k/Q9L3M%y"_5u
            <int>0x2002</int>    <!-- EN SPACE -->
b8V]3v9K0            <int>0x2003</int>    <!-- EM SPACE -->51Testing软件测试网$r?"I,~vQzF M
            <int>0x2004</int>    <!-- THREE-PER-EM SPACE -->
yk)[ X!ErJ7T0            <int>0x2005</int>    <!-- FOUR-PER-EM SPACE -->
8x/T@L u;Q0            <int>0x2006</int>    <!-- SIX-PER-EM SPACE -->51Testing软件测试网7^'b1i%iJ@%Jyc gi
            <int>0x2007</int>    <!-- FIGURE SPACE -->
?y6A$XMTS5i0            <int>0x2008</int>    <!-- PUNCTUATION SPACE -->51Testing软件测试网'SS _&B8T+gq?v7D
            <int>0x2009</int>    <!-- THIN SPACE -->51Testing软件测试网z s7P c:GK0A4l@#E I
            <int>0x200a</int>    <!-- HAIR SPACE -->
(k zr%RViTho0            <int>0x200b</int>    <!-- ZERO WIDTH SPACE -->
,nb7x y$X'N+i0            <int>0x200c</int>    <!-- ZERO WIDTH NON-JOINER -->51Testing软件测试网!gO_4I/{
            <int>0x200d</int>    <!-- ZERO WIDTH JOINER -->
2jn)J3QF:e8J0            <int>0x200e</int>    <!-- LEFT-TO-RIGHT MARK -->51Testing软件测试网"NeC.SC
            <int>0x200f</int>    <!-- RIGHT-TO-LEFT MARK -->51Testing软件测试网e0Cc+``uM
            <int>0x2028</int>    <!-- LINE SEPARATOR -->
)~ @HT l0            <int>0x2029</int>    <!-- PARAGRAPH SEPARATOR -->
-m]o g To5b0            <int>0x202a</int>    <!-- LEFT-TO-RIGHT EMBEDDING -->
!m!|)gb!c k0            <int>0x202b</int>    <!-- RIGHT-TO-LEFT EMBEDDING -->51Testing软件测试网WI/M:V6HE8y7|+q"I
            <int>0x202c</int>    <!-- POP DIRECTIONAL FORMATTING -->51Testing软件测试网)Rz)A/h-Q]
            <int>0x202d</int>    <!-- LEFT-TO-RIGHT OVERRIDE -->
qyM/FTf|:e*f0            <int>0x202e</int>    <!-- RIGHT-TO-LEFT OVERRIDE -->
.Iv9thRqw0            <int>0x202f</int>    <!-- NARROW NO-BREAK SPACE -->
Ll _+ljT0            <int>0x205f</int>    <!-- MEDIUM MATHEMATICAL SPACE -->51Testing软件测试网Guj)w[
            <int>0x2060</int>    <!-- WORD JOINER -->51Testing软件测试网9Mo0o?m&eq\O
            <int>0x2061</int>    <!-- FUNCTION APPLICATION -->
|?0M!I x#| kt0            <int>0x2062</int>    <!-- INVISIBLE TIMES -->
KW+M8jE#GA!~y0            <int>0x2063</int>    <!-- INVISIBLE SEPARATOR -->
IL9m"^vpvD0            <int>0x206A</int>    <!-- INHIBIT SYMMETRIC SWAPPING -->
a4SD] W^0            <int>0x206B</int>    <!-- ACTIVATE SYMMETRIC SWAPPING -->51Testing软件测试网!}b,\(H}
            <int>0x206C</int>    <!-- INHIBIT ARABIC FORM SHAPING -->
0Ch6s{_0            <int>0x206D</int>    <!-- ACTIVATE ARABIC FORM SHAPING -->
qIO!M/J'Fe*Z0            <int>0x206E</int>    <!-- NATIONAL DIGIT SHAPES -->
$B-nSWZ\/M0            <int>0x206F</int>    <!-- NOMINAL DIGIT SHAPES -->51Testing软件测试网 cO&sb#_ d)Z \!T
            <int>0x3000</int>    <!-- IDEOGRAPHIC SPACE -->51Testing软件测试网~A,_Z/t|N$D
            <int>0x3164</int>    <!-- HANGUL FILLER -->51Testing软件测试网7|_*@:h g d
            <int>0xfeff</int>    <!-- ZERO WIDTH NO-BREAK SPACE -->51Testing软件测试网 erCk&@
            <int>0xffa0</int>    <!-- HALFWIDTH HANGUL FILLER -->51Testing软件测试网$M{a%k w L:A
            <int>0xfff9</int>    <!-- INTERLINEAR ANNOTATION ANCHOR -->51Testing软件测试网1m*^ BcyaG4Tv2Vk2@
            <int>0xfffa</int>    <!-- INTERLINEAR ANNOTATION SEPARATOR -->
O9J7OaV;WFH{0            <int>0xfffb</int>    <!-- INTERLINEAR ANNOTATION TERMINATOR -->
.^7rx,l4I'B0        </blank>
#y%a ]3S~.Q'e0<!--
RO i|VRGgD0  Rescan configuration every 30 seconds when FcFontSetList is called
*[ ZqohF6dF0 -->51Testing软件测试网]4^.Bl5T4I*j_ Y
        <rescan>51Testing软件测试网X$P'n dg1m3iC
            <int>30</int>51Testing软件测试网Z)a0Jo&MV~
        </rescan>
bli f"M [P0    </config>
5k [A ? Vg051Testing软件测试网,C(P'a x9U*q
</fontconfig>< br>------------------------------------------------------------------- --------------------------------------
t._St,z9}0接着 gnome菜单    系统──首选项目──字体 如下图设置都选WenQuanYi Bitmap Song字体。 

*O8zoaV \_}xlB0

-d Cd9}:w0Y]|!q2N0然后注销一下即可看到效果…………51Testing软件测试网"zUr z9y/Yv\

)m#w*[9D qh}pmZX8m0
B,hf0J7p JW0下面付上如何在gvim(没有安装赶快用apt-get install vim-gnome安装一个吧^^)上使用WenQuanYi Bitmap Song显示
7\0C:T8r2Oq y ?+Q1^0修改/etc/vim/gvimrc文件,下面贴出此文件内容和效果51Testing软件测试网4Abmu_v(Ky
-------------- ----------------------------------------------------------------------------51Testing软件测试网w-D.o~"{[.Jo
" Configuration file for gvim
T u$^0D d sy0" Written for Debian GNU/Linux by W.Akkerman <wakkerma@debian.org>51Testing软件测试网M9NVMt1i|#j
51Testing软件测试网 |^$F ?5V&U4_
" Make external commands work through a pipe instead of a pseudo-tty
l_)O0d"GK6_9~Z0"set noguipty51Testing软件测试网 CHL%FNT
" Switch syntax highlighting on, when the terminal has colors
u*s.r/Rm`p{E0
4?8Nw^C^;E4jL0" Make shift-insert work like in Xterm
Zuha9` U0map <S-Insert> <MiddleMouse>
4n$_bx;q5]pFw0map! <S-Insert> <MiddleMouse>
#D1t6Jp!sW051Testing软件测试网7h H#ZM?X
" Also switch on highlighting the last used search pattern.
H6Ox-[ Nl*s+z0if has("syntax") && (&t_Co > 2 || has("gui_running"))51Testing软件测试网b7q"NQ6yX2~p J-h
  syntax on51Testing软件测试网Y}3IN.p'Z;Me
  set hlsearch51Testing软件测试网0Mx6O-S8UQ#K
endif
izk+n#|%k)Z051Testing软件测试网{Z+D jc2McjW
" Extensions by i18n teams51Testing软件测试网&I4m$|.Y,Vu
if filereadable( "/etc/vim/langrc/" . $LANG . ".vim" )51Testing软件测试网y/xR6Ll^
   exe "so " . "/etc/vim/langrc/" . $LANG . ".vim"
yiO7d$z(g2mh1G0endif
S R^&?o(H051Testing软件测试网^-~(w+jYBhJo
" You can also specify a different font, overriding the default font and the51Testing软件测试网`y#D}P;cCR
" one from the hooks above:51Testing软件测试网BQ1O6maL2j]
 set guifont=WenQuanYi\ Bitmap\ Song\ 10
&w s1WX[2K1L0------------------------------------------------------------- ------------51Testing软件测试网XYKn5_
主意到最后一行没有这就是重点所在,我们这里使用了转义字符[\ ]<---一个斜杠+一个空格来表示空格。。。。。。。。。。。。。。。。。好了
*Q$]q^p jQ"~0

Y+Y#D7~kl p&e0

over,如有错误之处望指出,谢谢51Testing软件测试网#H&d#s0Go {
51Testing软件测试网-?#U b2{vV

JM0J&A`/D0

8x?)bWZ/z.U0

TAG: Linux

 

评分:0

我来说两句

日历

« 2024-04-21  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 45933
  • 日志数: 42
  • 图片数: 3
  • 文件数: 1
  • 书签数: 13
  • 建立时间: 2007-01-05
  • 更新时间: 2007-03-03

RSS订阅

Open Toolbar