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

51Testing软件测试网T7KO&i{V9K*o^"}

OS:Ubuntu 5.04(Hoary Hedgehog)    51Testing软件测试网g'Km7q(Zd

9lej~"J2?s'E0文泉译前几天发布正式版拉,终于等到了。嘿嘿~~下面我们来进行安装。首先我们先把字体包下载下来(wqy-bitmapfont栏下的0.5.0pcf和0.5.0bdf)http://sourceforge.net/project/showfiles.php?group_id=128192
${;f+BkW y UY#M051Testing软件测试网 F#h/T,C\)e)fW7l

 解压下载下来的文件包51Testing软件测试网k|(By!r x9{n
tar zxvf wqy-bitmapfont*.tar.gz
x+OZ.G o0

kw5_0lx'?GsNy'[0所有文件会被解压到./WenQuanYi目录下51Testing软件测试网^ vD#lr~[eL
将所有文件放到 /usr/share/fonts/Chinese/WenQuanYi (推荐使用此目录)下,在继续下一步之前请切换为root模式,然后继续^^!(su 或者sudo)51Testing软件测试网;l%a7skJ]5S${'H
接着使用下面命令安装安装字体:51Testing软件测试网 \1q r2WQ/N
   cd /usr/share/fonts/Chinese/WenQuanYi/Bitmap/51Testing软件测试网9Y0XhjK3dO*w`
   mkfontdir51Testing软件测试网3xEWPG NG
   cp fonts.dir fonts.scale
$z-R%t0HzZ ?0   xset +fp /usr/share/fonts/Chinese/WenQuanYi/Bitmap/51Testing软件测试网4BO5H td9J#]
   fc-cache
v1_ c"t+{m0至此字体安装完毕51Testing软件测试网3b'G(D's J
接着我们修改fonts.conf,此文件位于/etc/fonts/下,在修改之前建议您先备份下这个文件,以免改错恢复,以下命令将fonts.conf备份为fonts.conf.bakup
/IQRu k tj0cp /etc/fonts/fonts.conf /etc/fonts/fonts.conf.bakup
m)F]K`7A {\0备份完毕我们开始大干一场吧(以下贴出本人的fonts.conf内容,对照着修改吧)51Testing软件测试网 p:V6wy4p g"U
-------------------------------------------------------- ------------------------------------
3Ge3fC?'I0<?xml version="1.0"?>
U!Dj s ju?0<!DOCTYPE fontconfig SYSTEM "fonts.dtd">51Testing软件测试网Mw9GR3HeWy
<!-- /etc/fonts/fonts.conf file to configure system font access -->
v!k%~C-T+x,\']0<fontconfig>
pL+_5I{8@ guoX051Testing软件测试网HmZet@
<!--
cVG h ur4|-p0    DO NOT EDIT THIS FILE.
Zv9p Jc;[ o{0    IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
XZ]x-U$lwp0    LOCAL CHANGES BELONG IN 'local.conf'.51Testing软件测试网e:ud/G4Z)LE'TT
51Testing软件测试网'u3L p1Og
    The intent of this standard configuration file is to be adequate for
W'ej ? @Ip0    most environments.  If you have a reasonably normal environment and
o"A8s%H3M(vV_M V0    have found problems with this configuration, they are probably
,g;}'e(VP\ Ah/b9w0    things that others will also want fixed.  Please submit any51Testing软件测试网Msppwr)Eh
    problems to the fontconfig bugzilla system located at fontconfig.org51Testing软件测试网/XSS7R,r(k Vcj

1Ind/f ry0    Note that the normal 'make install' procedure for fontconfig is to51Testing软件测试网0L!I8W"x1?"x.no!x }!V
    replace any existing fonts.conf file with the new version.  Place
B:Rdp9L9z;F L0    any local customizations in local.conf which this file references.51Testing软件测试网a Pdi1Z;e ~)C3Tz0F

TQ'RJ"C#Pg V2y;o0    Keith Packard51Testing软件测试网.AO@mf$N$V$y
-->51Testing软件测试网3V&n t&gy7Z

c n,w/}(E/]z}0    <dir>/usr/share/fonts</dir>
)A`Z/I XmR#w0    <dir>/usr/X11R6/lib/X11/fonts/Type1</dir> <dir>/usr/local/share/fonts</dir>51Testing软件测试网_l#L/^yP8~JYL
    <dir>~/.fonts</dir>51Testing软件测试网2z4}}a1l5zE#F
51Testing软件测试网$n0O+m p U\-`
<!--
7I8W{(\h9t {0  Accept deprecated 'mono' alias, replacing it with 'monospace'
cR*R%xw/eWufp a0V0-->51Testing软件测试网F@"u:~4NEX
    <match target="pattern">
3M ^r [%g F,z!Kh;y W0        <test qual="any" name="family">51Testing软件测试网5qGZ-T)q]
            <string>mono</string>51Testing软件测试网z~:q/a\9Ox(Bo
        </test>51Testing软件测试网#O1]A J#{2Y Xo
        <edit name="family" mode="assign">
+bQ h.Ee A;U su8WMm0            <string>monospace</string>
2Xy)V4Q@)G!O0        </edit>
UY~:] Vf0    </match>
i-u(LHF$p4_;};S0
-m%X^K*rr2l9AP0<!--
1Z mB}^0  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'51Testing软件测试网*EJv'f'B)`9R
-->51Testing软件测试网I5z3u(V!EV iDr
    <match target="pattern">51Testing软件测试网 p(z)~)`npE
        <test qual="any" name="family">
.dN1hg~^0            <string>sans serif</string>51Testing软件测试网0{k:K#U^3q4cgu*s\8{
        </test>
W` QpL%};y0        <edit name="family" mode="assign">
i+Q"DGW#k-Z(V0            <string>sans-serif</string>51Testing软件测试网p*w3E(@o|
        </edit>51Testing软件测试网6_T1Z*S I6|px
    </match>
UzM wMlR Rw051Testing软件测试网(u"KX Y9E0t^
<!--
$MTu2m~bC*`&|;r0  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
JC9lIi0-->51Testing软件测试网JS(W-@&I.e
    <match target="pattern">
O;z.G)hi(qt5]{u0        <test qual="any" name="family">51Testing软件测试网&rM r;NN T
            <string>sans</string>
4Ha,Kt&`yj8U+?0        </test>51Testing软件测试网DIFec&S"V s
        <edit name="family" mode="assign">
7\K7? m4i9@0            <string>sans-serif</string>51Testing软件测试网&u%t6w:LvPtiO~
        </edit>51Testing软件测试网.Kw `9a1|aJ"u
    </match>
(K6fd"W2dr~;q051Testing软件测试网Ro8A M#z^#l
<!--
]\METxE3o0  Mark common families with their generics so we'll get51Testing软件测试网 KQ8oh'U0_f
  something reasonable51Testing软件测试网@t+~!b!`%]"UsY
-->
Gy-VUW\v0
a%I![KA(S0<!--51Testing软件测试网LT"SXV\0x#J ]
  Serif faces51Testing软件测试网ZHM1k:t~(QmZ
 -->
Q\E`YjqG0   <alias>51Testing软件测试网F,K$[)a)w.I&gA
      <family>Bitstream Vera Serif</family>51Testing软件测试网oso+v/v:T6NP0U
      <family>WenQuanYi Bitmap Song</family>   <!-- added it-->
Q D| {/M9r Z-_0D0      <family>Vera Sans YuanTi</family>                  51Testing软件测试网 Lh*| T sm
      <family>Times</family>51Testing软件测试网c`Q$W&SC5\_6CFo
      <family>Times New Roman</family>
\0Uj8e gGH0      <family>Nimbus Roman No9 L</family>51Testing软件测试网QWC B"|/Y,y
      <family>Luxi Serif</family>
a\9G6zUd#c3{0      <family>Kochi Mincho</family>
/n5E0Qe _k_)G0      <family>AR PL SungtiL GB</family>51Testing软件测试网_{ d[{&g7B i,a
      <family>AR PL Mingti2L Big5</family>
u)L e"kgW:?0      <family>Baekmuk Batang</family>51Testing软件测试网E{7KM@7G
      <family>FreeSerif</family>51Testing软件测试网({F GzXUM
      <default><family>serif</family></default>51Testing软件测试网{(j1Xh~4d*Wi
   </alias>
&`$X)xF K8]@~6H0q0<!--51Testing软件测试网he"FE bp&@0XG:ys
  Sans-serif faces
#|6WH1k7m@XzO+L0 -->51Testing软件测试网 H$L;f&D&tm
   <alias>
#^ _#F&M*rDY9g L's0      <family>Bitstream Vera Sans</family>51Testing软件测试网OhShH8w3A
      <family>WenQuanYi Bitmap Song</family> <!-- added it-->51Testing软件测试网8W.nL_x$G?
      <family>Vera Sans YuanTi</family>51Testing软件测试网3UN%BPa f(O
      <family>WenQuanYi Bitmap Song</family>                        51Testing软件测试网L0tZ{0z,_5Y8W
      <family>Helvetica</family>51Testing软件测试网6d0{N6U,KGX&V+}&k|
      <family>Arial</family>
JcI8hO6H'{g@ a0      <family>Verdana</family>51Testing软件测试网w } y`3T1vj#b$K6p
      <family>Nimbus Sans L</family>
,c@O3k%_5wA8F#r!Sv0      <family>Luxi Sans</family>
Dh'~ ?.Po;@M0      <family>Kochi Gothic</family>51Testing软件测试网(|0[p+S"K @ W
      <family>AR PL KaitiM GB</family>51Testing软件测试网y y0B5_3W)C g)M
      <family>AR PL KaitiM Big5</family>51Testing软件测试网1F:_`#uh
      <family>Baekmuk Dotum</family>
6]1U/tB0B"b G3O0      <family>SimSun</family>
Ps(i-Gh0      <family>FreeSans</family>
}'Br#Eh|0      <default><family>sans-serif</family></default>
3O#j T2w$Bjz0   </alias>
zg.xj2n { l,~0<!--
_-vm(A(zRJn \0  Monospace faces
7\/X/fT"^9UG;r4R0 -->
#{'WJVw;[+?XJ*[[0    <alias>
T^%] Q:P#Rjh!B%sucC0      <family>Bitstream Vera Sans Mono</family>51Testing软件测试网JM-e/zp:T
      <family>WenQuanYi Bitmap Song</family>  <!-- added it-->51Testing软件测试网;[ C[z9F([*{ dd
      <family>Vera Sans YuanTi Mono</family>                       51Testing软件测试网_0u0[/w$FN6FL*X
      <family>Courier</family>51Testing软件测试网/?| s1d/`3qu
      <family>Courier New</family>
+SB|a+@6s,|e0      <family>Andale Mono</family>
#Zmq0N-Rm2y/Z0      <family>Luxi Mono</family>
&~'_mMO7?9Z+?$~[w0      <family>Nimbus Mono L</family>51Testing软件测试网(X FA(S^Ef])UDC
      <family>SimSun</family>
5V0@]]7OI(K wf W%I;b0      <family>FreeMono</family>
3G2kt)p2}U0      <default><family>monospace</family></default>
)K6j]#w\0   </alias>51Testing软件测试网FW Kt;QkMA(a
<!--
rP p#k\*Q9M0  If the font still has no generic name, add sans-serif
E8@bLj+{,k0 -->
+aGA@;[\+fn0    <match target="pattern">51Testing软件测试网hm9ss!p&MT
        <test qual="all" name="family" compare="not_eq">
,F#J d9Np)E'g l0            <string>sans-serif</string>51Testing软件测试网9_$itSf*n;R
        </test>
j9G6E"JQ { atWK0        <test qual="all" name="family" compare="not_eq">51Testing软件测试网 j0R a8R:u4DR
            <string>serif</string>51Testing软件测试网$Bd*yr ^ya*Q
        </test>51Testing软件测试网9?G3C DKqh
        <test qual="all" name="family" compare="not_eq">
&|;b$\/BP9m0            <string>monospace</string>
c*v(|0\%k0        </test>51Testing软件测试网[ Pxs/e:Ow` ~
        <edit name="family" mode="append_last">51Testing软件测试网f3B!Z+th!K q |9d ]
            <string>sans-serif</string>51Testing软件测试网c`\@{gY-z
        </edit>
y"i~m S3}-L0    </match>
$y9Q'l!j0m0   
YwK mXi!qQ u0<!--
7G{%rf$_rk-N0  Some Asian fonts misadvertise themselves as monospaced when51Testing软件测试网!Z s*o{a(Xb7vd
  in fact they are dual-spaced (half and full).  This makes51Testing软件测试网!{A!? a3^Q b3sI0Z vv
  FreeType very confused as it forces all widths to match.
rGj7uAF_+`b0  Undo this magic by disabling the width forcing code -->
4pU.xp|mH0    <match target="font">51Testing软件测试网G&Z1Sb1[n+u^ I&v)K S
        <test name="family"><string>GulimChe</string></test>51Testing软件测试网OgIZ U
        <edit name="globaladvance"><bool>false</bool></edit>51Testing软件测试网Lv/ZhrY
    </match>
U|;w W"hC/H7U8Q-{0   51Testing软件测试网3h^)Cj ~tM)i
    <match target="font">51Testing软件测试网 N-E4N};g&K$T@
        <test name="family"><string>DotumChe</string></test>
%ATD:n{)U(F$A`0        <edit name="globaladvance"><bool>false</bool></edit>
1}h?'t0u6^0nI0    </match>
zJr)M(?!M ]O0
O&s*k hW\W0    <match target="font">51Testing软件测试网G M$Kt[e
        <test name="family"><string>BatangChe</string></test>
/w#EokV3vu? U!f0        <edit name="globaladvance"><bool>false</bool></edit>51Testing软件测试网;Xt\8] R
    </match>51Testing软件测试网Q%E W9Z j;Vp"a$c
51Testing软件测试网8Vk6o7FR5Y
    <match target="font">51Testing软件测试网Qfh#V/@TX'n
        <test name="family"><string>GungsuhChe</string></test>
3SCC/{gO0        <edit name="globaladvance"><bool>false</bool></edit>51Testing软件测试网"yJU8R5u$g~
    </match>
,p k L#VLN t0
/m8{KQ+YYddF0<!--51Testing软件测试网o;H'u j Ft2Ay8@
    The Bitstream Vera fonts have GASP entries suggesting that hinting be
(L J!WqE0    disabled below 8 ppem, but FreeType ignores those, preferring to use51Testing软件测试网6C1NDI;q2Kcz
    the data found in the instructed hints.  The initial Vera release
A4go+t#Yz;s"^0    didn't include the right instructions in the 'prep' table. Fix this51Testing软件测试网B&`$wfj vo\ he
    by disabling hinting manually at smaller sizes (< 8ppem)51Testing软件测试网%H#? n;nBM'V$y
 -->51Testing软件测试网c'FbK!b2ow!k
   51Testing软件测试网f$YP2C,e Z XX"T
 
)X+N%A A(m P+h s0   <match target="font">51Testing软件测试网UUU/N Vq
      <test name="family">
3wm9qp'`0         <string>WenQuanYi Bitmap Song</string>  <!-- edit it-->
7k9G,inzox[0      </test>51Testing软件测试网.n5Pz.U!A"gUd
      <test name="pixelsize" compare="less">
v{!T/A6^Z0         <double>7.5</double>
"k X4A$mP@1^0      </test>51Testing软件测试网z2Dm`^*\8t)T!]F
      <edit name="hinting">
/cs)_Q~;[a0         <bool>false</bool>
Ga/D%`d&w+o0      </edit>    51Testing软件测试网N.`P#L"^&ufn0U
   </match>51Testing软件测试网 L I-i A3Vz
  51Testing软件测试网T*A"G uCWH$]@
   <match target="font">51Testing软件测试网j DjzU@-Z
      <test name="family">
k4t4Ca+`X0         <string>WenQuanYi Bitmap Song</string> <!-- edit it-->
y }Cf@ X eZ0      </test>51Testing软件测试网 cc/j-R G B
      <test name="pixelsize" compare="less">
'y(q$G7A#f {T0         <double>7.5</double>51Testing软件测试网Q"c"P }*v
      </test>
2|?%MS`Y0      <edit name="hinting">51Testing软件测试网+l]GeM h
         <bool>false</bool>
tZ"Vx1RtyJ0      </edit>51Testing软件测试网A2T j6] EM7_-P
   </match>
5] P OT8rj0  
T/rf] D2O0   <match target="font">
4R.k2wP o0      <test name="family">
Ji n1yV.T mA ? N p0         <string>WenQuanYi Bitmap Song</string> <!-- edit it-->51Testing软件测试网3F:q y7SZ.x M
      </test>
*_ Rq5}W0      <test name="pixelsize" compare="less">
j+_f"J3dB@Kgh)KZ'~0         <double>7.5</double>51Testing软件测试网J4g$Z~+Bf!}
      </test>51Testing软件测试网&y2N?:v ~5sR
      <edit name="hinting">51Testing软件测试网-fW^JI*L4{K|!M
         <bool>false</bool>
m*G'w2W,m~0      </edit>
Gi1v F Eci6A0   </match>
2P,P e])[+@y0  
3m)ag:CvmCGe(~|j0   51Testing软件测试网`+{ j)n S}(q
<!--
WVe |)@*w*vJ^4V0  Load local system customization file51Testing软件测试网9K d,? w\H
-->51Testing软件测试网1C `eEO9J2T\$Z
    <include ignore_missing="yes">local.conf</include>51Testing软件测试网i#O,S&u Lma7S _B%H
51Testing软件测试网Z{4K}h1]"Wv
<!--
I9G&qs/Ua'tm{0  Load per-user customization file
c0R1Wr-W+S,]\0-->51Testing软件测试网 PA HC(~Z
    <include ignore_missing="yes">~/.fonts.conf</include>51Testing软件测试网$l r5MS MS

&U3wUb9M#FYu(M0<!--
"GP2nh)jJY6B5u6n%G0  Alias well known font names to available TrueType fonts
)T:i;V{|sG!D0-->51Testing软件测试网a8B'i`9v2\
    <alias>
4J DK3HA/Lg.S0        <family>Times</family>
c Vs#BlS#N/i'Z0        <accept><family>Times New Roman</family></accept>
3PYEHx^G6X!O0    </alias>
R^v)v&pr%@;I0    <alias>
E6x_ \-^ R ?p2m0        <family>Helvetica</family>
9SA/@] GX/O)U%W0        <accept><family>Verdana</family></accept>
cOZ1^R`%f0    </alias>51Testing软件测试网F2]c? qx5_#}Bpc
    <alias>51Testing软件测试网{7^r}M1vr
        <family>Arial</family>
,^1|(V/G~0        <accept><family>Verdana</family></accept>51Testing软件测试网&InP&pP
    </alias>51Testing软件测试网i%yoX*d"t
    <alias>51Testing软件测试网,E'iZX } gt
        <family>Courier</family>51Testing软件测试网 w;XEP? q3Rgka5qb
        <accept><family>Courier New</family></accept>51Testing软件测试网0Way8F3q?3[
    </alias>51Testing软件测试网;TO~$AK5F*V
51Testing软件测试网,?T `c,s6t_1r
<!--51Testing软件测试网,^];]Rz j,ir
 Check user preference to avoid bitmap fonts and replace
4Q,S%X*jO?&f0 bitmap face names with equivalent scalable fonts51Testing软件测试网H6F,N;E;ZMd l X?
 -->51Testing软件测试网.V0qL@#y7Q6f
51Testing软件测试网&O-[Q*D!lCk {
    <match target="pattern">51Testing软件测试网.X6yR/uk@
            <test name="prefer_outline">51Testing软件测试网nn#I0N|
                    <bool>true</bool>51Testing软件测试网/Ls ]6]9_/n MY
            </test>51Testing软件测试网]'G `U bo,^
            <test name="family">
~!QbO YP)e0                    <string>Helvetica</string>51Testing软件测试网\.`]B$e{!KycI&d
            </test>51Testing软件测试网Rwyq%O;t*G)k Z
            <edit name="family" mode="prepend" binding="same">51Testing软件测试网5UM^p]
                    <string>Arial</string>
9b@ _?:A Q0            </edit>
NSYmw}9s0    </match>51Testing软件测试网1_iJe^+P
51Testing软件测试网.MwK#\S+LZ2]r j
    <match target="pattern">
[%Q%x2t K T0            <test name="prefer_outline">51Testing软件测试网!x` j"| O1P.@8d6_ y
                    <bool>true</bool>51Testing软件测试网H\@`@0z!q2M S
            </test>
%DH#o9och5C0z(E~V0            <test name="family">
L"?L+Z-\J/~Y0                    <string>Times</string>51Testing软件测试网O#l4J OA7Q%JbV
            </test>
~W,k,VYF0            <edit name="family" mode="prepend" binding="same">
@S]{1ge U*C"t0                    <string>Times New Roman</string>51Testing软件测试网D3C5ub&Gp"s|b
            </edit>
\RQ7m3P-@B2A0    </match>
^-`4gQ_#tm0<!--51Testing软件测试网A'sO{fu-c!K
  Provide required aliases for standard names
[i8W ZHz,]3j0-->
Rh;@d$N8f ?0   <alias>
u c{p.Gj^WX0      <family>serif</family>
g\N+q9@'}0      <prefer>
&u1d @({P|MN0         <family>Bitstream Vera Serif</family>
9C(D f nY3b Y4BU `0     <family>WenQuanYi Bitmap Song</family>     <!-- added it-->
l%{(Ftb2^0         <family>Vera Sans YuanTi</family>                       51Testing软件测试网o{ }9M-n*@8Y:b*Q
         <family>Times New Roman</family>
-W5DO7~)j&l,r-d9f0         <family>Nimbus Roman No9 L</family>51Testing软件测试网?9x3??)i
         <family>Luxi Serif</family>51Testing软件测试网:D*ZS`;KRp,dv
         <family>Times</family>51Testing软件测试网AY'~ Z`M
         <family>Frank Ruehl</family>
9n9amIq?:oYJA0         <family>Kochi Mincho</family>51Testing软件测试网q9b'G7w7GZ4P
         <family>AR PL SungtiL GB</family>51Testing软件测试网A og8_E U{]
         <family>AR PL Mingti2L Big5</family>51Testing软件测试网-IsAB&}7xw"p$d6Z
         <family>Baekmuk Batang</family>51Testing软件测试网\+^v k2YA2_P X C
         <family>FreeSerif</family>
/uzT.N(Kby0      </prefer>51Testing软件测试网H` V%i*l-O[
   </alias>51Testing软件测试网/C2_ p }w\
   <alias>51Testing软件测试网G'QsC3]iZ
      <family>sans-serif</family>
8L9eMZ-Q^Pw1Ji0      <prefer>
~8y j"@ZsD0         <family>Bitstream Vera Sans</family>51Testing软件测试网0J1Y2D&@7Y`W`
         <family>WenQuanYi Bitmap Song</family>     <!-- added it-->
4L,S(A%jtyF0         <family>Vera Sans YuanTi</family>                       51Testing软件测试网 nY:Rq|
         <family>Verdana</family>51Testing软件测试网9ZJ?SH/RYEs5v
         <family>Nimbus Sans L</family>
V4os.R[^0         <family>Luxi Sans</family>51Testing软件测试网9t+S:D-]Qze/c.h V
         <family>Arial</family>51Testing软件测试网!]j!V#?_
         <family>Helvetica</family>51Testing软件测试网*cBSH6nN/`] _qE7l
         <family>Nachlieli</family>
|Bi dC0         <family>Kochi Gothic</family>
3U$m`Z5q9wb9B ?7XW0         <family>AR PL KaitiM GB</family>
:g#M(oP-Hb~[0         <family>AR PL KaitiM Big5</family>
$Hd1nw6gpA}l0         <family>Baekmuk Dotum</family>51Testing软件测试网z!~%nX\0K L2m*x
         <family>SimSun</family>
I0T'X]i d"XigPd+\0         <family>FreeSans</family>51Testing软件测试网KH4UqZ7lw)x{
      </prefer>51Testing软件测试网Z7H G&P B+R
   </alias>
;P4P:M LY-R*J gG0   <alias>51Testing软件测试网#B2S2y:s4d!Ra}*c
      <family>monospace</family>51Testing软件测试网$b$` nyr~mB3`
      <prefer>51Testing软件测试网-Sbd,g ?+~C_
         <family>Bitstream Vera Sans Mono</family>51Testing软件测试网 ~rZ'F TXKEa
     <family>WenQuanYi Bitmap Song</family>     <!-- added it-->
|'| ]i(Q?$N4A.B0         <family>Vera Sans YuanTi Mono</family>                       51Testing软件测试网V)T1Ah B,A
         <family>Andale Mono</family>
5NFs6s&r&i#]6N0         <family>Courier New</family>
"@ j`,N2w%e |8uX0         <family>Luxi Mono</family>51Testing软件测试网vy @^jtM
         <family>Nimbus Mono L</family>
2`a5_WSP0         <family>Miriam Mono</family>
7xr/E F3s0         <family>Kochi Gothic</family>51Testing软件测试网j7vc8d q)q}%jc6AB
         <family>AR PL KaitiM GB</family>
X+]7}2l(}0         <family>Baekmuk Dotum</family>
Q Ac%_r D{0u(u0         <family>FreeMono</family>
(D%Q @j:g!m3l0      </prefer>51Testing软件测试网*Z8ELA s{P7q b3_
   </alias>51Testing软件测试网0J'Tx X-|9{9TA}
51Testing软件测试网9L r;F0S p9J Un~$y,d
<!--51Testing软件测试网's%u#p#]%ZZ
 Artificial oblique for fonts without an italic or oblique version51Testing软件测试网 y0b uF't2n xX8[
 -->51Testing软件测试网K;JB)kp4Y?
 
*`8G._ @~0    <match target="font">51Testing软件测试网H ppNgVn
        <!-- check to see if the font is roman -->51Testing软件测试网1x Y$D2C p#Ef(hbE[8L)N
        <test name="slant">51Testing软件测试网 Oa,L\2}o
            <const>roman</const>
U7[6YU!r0BXw0        </test>51Testing软件测试网O1v~d.GE P2U6J~
        <!-- check to see if the pattern requested non-roman -->51Testing软件测试网4K{CFr'U1Q[2z
        <test target="pattern" name="slant" compare="not_eq">51Testing软件测试网h!M-Lu;A+og ]
            <const>roman</const>
;?"|8M hFa0        </test>
-FURZ,C!Pq"gp1rt0        <!-- multiply the matrix to slant the font -->
u JY:p8_"CG7Q.]8P0        <edit name="matrix" mode="assign">51Testing软件测试网4KFcF/|Fz2o
            <times>
]sk.|!SEe(Ih9J$v0                <name>matrix</name>51Testing软件测试网1{O0ao)Z,P:?
                <matrix><double>1</double><double>0.2</double>51Testing软件测试网$N7RtJu7j MSY
                    <double>0</double><double>1</double>
2`&L;QE&FMjGPa0                </matrix>51Testing软件测试网j&Jp:dos:\M
            </times>51Testing软件测试网+y sq d5Q*` y
        </edit>51Testing软件测试网}&tf h,X&b(n
        <!-- pretend the font is oblique now -->51Testing软件测试网#O3`%tqq-]i o
        <edit name="slant" mode="assign">
/u,K,x5x n$z+t$qc U8b0            <const>oblique</const>
0j u'ta4?L!P0        </edit>
1EK#@o eIK5v.H0    </match>
fgK`6qJ051Testing软件测试网{vg XXW3\
    <config>51Testing软件测试网7z-Q4S4|[w[?
<!--51Testing软件测试网o\4v3{C
  These are the default Unicode chars that are expected to be blank51Testing软件测试网7Y^L3j&T
  in fonts.  All other blank chars are assumed to be broken and51Testing软件测试网Ph Y`9[u#Z8l
  won't appear in the resulting charsets
k1e5{8Td1g,g0 -->51Testing软件测试网!Pb?m(h0G!H
        <blank>
N(l!Ais0            <int>0x0020</int>    <!-- SPACE -->
H+S1~Gn0d3f0            <int>0x00a0</int>    <!-- NO-BREAK SPACE -->
J)Gy9aE#t;j6Y0            <int>0x00ad</int>    <!-- SOFT HYPHEN -->51Testing软件测试网2J)DW"?#b.f~1a U
            <int>0x115f</int>    <!-- HANGUL CHOSEONG FILLER -->
9i? ~la0B0            <int>0x1160</int>    <!-- HANGUL JUNGSEONG FILLER -->51Testing软件测试网4RD-U3a`:R:S
            <int>0x1680</int>    <!-- OGHAM SPACE MARK -->
s%XK;x fIG&{"@0            <int>0x2000</int>    <!-- EN QUAD -->51Testing软件测试网!xUtge n.iq)RT#p
            <int>0x2001</int>    <!-- EM QUAD -->51Testing软件测试网|d'm,z&FmT-?$Gh%c
            <int>0x2002</int>    <!-- EN SPACE -->51Testing软件测试网 j B f,C s
            <int>0x2003</int>    <!-- EM SPACE -->51Testing软件测试网H^Yi"] Dh
            <int>0x2004</int>    <!-- THREE-PER-EM SPACE -->51Testing软件测试网e'f'iOfp^ y1S
            <int>0x2005</int>    <!-- FOUR-PER-EM SPACE -->51Testing软件测试网!P;s?M3Z
            <int>0x2006</int>    <!-- SIX-PER-EM SPACE -->51Testing软件测试网 Dg(J]#L-g f\ZhS
            <int>0x2007</int>    <!-- FIGURE SPACE -->
:f!E^6m4sR W0            <int>0x2008</int>    <!-- PUNCTUATION SPACE -->
%m|$Dc([ H0            <int>0x2009</int>    <!-- THIN SPACE -->
B"B_nH'mXz0            <int>0x200a</int>    <!-- HAIR SPACE -->
S0~!\3xB'u0            <int>0x200b</int>    <!-- ZERO WIDTH SPACE -->51Testing软件测试网0V1c[+x$VS6i0\F
            <int>0x200c</int>    <!-- ZERO WIDTH NON-JOINER -->51Testing软件测试网+{!Mk?"C
            <int>0x200d</int>    <!-- ZERO WIDTH JOINER -->
`~0Kn"a-KCmJ$w0            <int>0x200e</int>    <!-- LEFT-TO-RIGHT MARK -->51Testing软件测试网6~"o(]#o2u7dSu
            <int>0x200f</int>    <!-- RIGHT-TO-LEFT MARK -->
)|%xtQyD*T0            <int>0x2028</int>    <!-- LINE SEPARATOR -->
%u~K;RY0            <int>0x2029</int>    <!-- PARAGRAPH SEPARATOR -->
PXN|n.H6\/B-B~0            <int>0x202a</int>    <!-- LEFT-TO-RIGHT EMBEDDING -->51Testing软件测试网%_6T'vK4z#hJ$M
            <int>0x202b</int>    <!-- RIGHT-TO-LEFT EMBEDDING -->
!t^J-f H(Q2u7W0            <int>0x202c</int>    <!-- POP DIRECTIONAL FORMATTING -->51Testing软件测试网?!Z5Z1ZI.g+w
            <int>0x202d</int>    <!-- LEFT-TO-RIGHT OVERRIDE -->51Testing软件测试网"a&c+_]8jJU YN
            <int>0x202e</int>    <!-- RIGHT-TO-LEFT OVERRIDE -->51Testing软件测试网mR8F-P"G8]~S
            <int>0x202f</int>    <!-- NARROW NO-BREAK SPACE -->51Testing软件测试网@5gG,LDbk:TF
            <int>0x205f</int>    <!-- MEDIUM MATHEMATICAL SPACE -->
bw-ub"z#di0gHm+^0            <int>0x2060</int>    <!-- WORD JOINER -->
%G9YOCd&GLR(F6OQ(u0            <int>0x2061</int>    <!-- FUNCTION APPLICATION -->
\+_h cl0            <int>0x2062</int>    <!-- INVISIBLE TIMES -->51Testing软件测试网2iji3g;v;N1Rj?5v
            <int>0x2063</int>    <!-- INVISIBLE SEPARATOR -->51Testing软件测试网Q}#{*g3r&~\E
            <int>0x206A</int>    <!-- INHIBIT SYMMETRIC SWAPPING -->
D h qJ2l+n0            <int>0x206B</int>    <!-- ACTIVATE SYMMETRIC SWAPPING -->
&VboG!cB"u0ZS0            <int>0x206C</int>    <!-- INHIBIT ARABIC FORM SHAPING -->
agwKa.Q+Z9`0            <int>0x206D</int>    <!-- ACTIVATE ARABIC FORM SHAPING -->51Testing软件测试网I:XL B"TU
            <int>0x206E</int>    <!-- NATIONAL DIGIT SHAPES -->51Testing软件测试网 _/Oj"zf
            <int>0x206F</int>    <!-- NOMINAL DIGIT SHAPES -->51Testing软件测试网5WI,pA,v
            <int>0x3000</int>    <!-- IDEOGRAPHIC SPACE -->
d$d O b/R&w0            <int>0x3164</int>    <!-- HANGUL FILLER -->
~O|4b`UR,LxG0            <int>0xfeff</int>    <!-- ZERO WIDTH NO-BREAK SPACE -->51Testing软件测试网x'_ s/`A1l^oy h+As
            <int>0xffa0</int>    <!-- HALFWIDTH HANGUL FILLER -->51Testing软件测试网!h i7D1f |/{%w
            <int>0xfff9</int>    <!-- INTERLINEAR ANNOTATION ANCHOR -->51Testing软件测试网 y Gf O?:e
            <int>0xfffa</int>    <!-- INTERLINEAR ANNOTATION SEPARATOR -->51Testing软件测试网0Co$m-xzZ,P|d
            <int>0xfffb</int>    <!-- INTERLINEAR ANNOTATION TERMINATOR -->51Testing软件测试网O%p3q)H3B?
        </blank>51Testing软件测试网+@ f9GhF4~
<!--
4@ Zx#sC!H0  Rescan configuration every 30 seconds when FcFontSetList is called
A'M*d;h ~ A?0 -->51Testing软件测试网L!W1L,k3Z2Q:F+l)T%]z
        <rescan>
.V(M7ncF,H1cov0            <int>30</int>
s|d9S3DP"Z)Y0        </rescan>51Testing软件测试网/L*W9DP8vn/h*^y
    </config>51Testing软件测试网%Pa9gr*f9J

\Y/s9ZpguJ0</fontconfig>< br>------------------------------------------------------------------- --------------------------------------
/qc _ a*a3K(n)_/?`0接着 gnome菜单    系统──首选项目──字体 如下图设置都选WenQuanYi Bitmap Song字体。 
51Testing软件测试网d q$_^7`P&_h-FQ

51Testing软件测试网;Gn2C!j"b[

然后注销一下即可看到效果…………51Testing软件测试网Zr-yVps

(w~2r:YC051Testing软件测试网Z5|$^,Dth+Q
下面付上如何在gvim(没有安装赶快用apt-get install vim-gnome安装一个吧^^)上使用WenQuanYi Bitmap Song显示51Testing软件测试网;^!@f2x V q
修改/etc/vim/gvimrc文件,下面贴出此文件内容和效果51Testing软件测试网a7z ?&I HT
-------------- ----------------------------------------------------------------------------51Testing软件测试网v.Q o,n9Mc4aJ$a
" Configuration file for gvim51Testing软件测试网?'X4Xj+I L"p[.~?/a
" Written for Debian GNU/Linux by W.Akkerman <wakkerma@debian.org>51Testing软件测试网0M-`g P~@G+V0T;X4Z
51Testing软件测试网q1zE,G\
" Make external commands work through a pipe instead of a pseudo-tty
E},z$L~o}0"set noguipty
+@/a]JB6h1n0" Switch syntax highlighting on, when the terminal has colors
_&L!V0L;v*a0
FQ V.Ce k5E0" Make shift-insert work like in Xterm
(DY N2|Z%DB0map <S-Insert> <MiddleMouse>
/w9w1D@9`3HR0map! <S-Insert> <MiddleMouse>
@iLE5q@w4[uUx051Testing软件测试网q3t1GYxR
" Also switch on highlighting the last used search pattern.51Testing软件测试网3HTayq)E'W9}+\
if has("syntax") && (&t_Co > 2 || has("gui_running"))51Testing软件测试网FI#eSE@%\
  syntax on51Testing软件测试网 R(`/t}!K!C
  set hlsearch
L b{$jfu.P+eX0endif51Testing软件测试网cZ(x6~"q{$M

Xu]i Mkx0" Extensions by i18n teams
,[U]LZ,\C0if filereadable( "/etc/vim/langrc/" . $LANG . ".vim" )51Testing软件测试网7@kG0De8iN b(_
   exe "so " . "/etc/vim/langrc/" . $LANG . ".vim"
.?z,j h+ljJ;h)M1b0endif51Testing软件测试网!kzJ:r"k.n

,T l}9y2yq0" You can also specify a different font, overriding the default font and the51Testing软件测试网R B|Ok6}
" one from the hooks above:
;_9v4PHBg]0 set guifont=WenQuanYi\ Bitmap\ Song\ 1051Testing软件测试网X${%k rI
------------------------------------------------------------- ------------
~@[bVvA\3Q0主意到最后一行没有这就是重点所在,我们这里使用了转义字符[\ ]<---一个斜杠+一个空格来表示空格。。。。。。。。。。。。。。。。。好了51Testing软件测试网 s$q#QD!u*Y0p7h-w
51Testing软件测试网0\ KC6f H](?

over,如有错误之处望指出,谢谢
#Q+g'F)]C)n%]0
4n4d'iH n.]K7C8pE hm0
H*X(U#vXKwK j0

9SJ3}t0kP/rf \0

TAG: Linux

 

评分:0

我来说两句

日历

« 2024-05-15  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

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

RSS订阅

Open Toolbar