|
发表于 2005-7-23 00:16:00
|
显示全部楼层
如果要使中文英文用不同字體?盹@示
應該要設定字型為Sans-Serif(Sans)或Serif
然後利用fontconfig?頉Q定該使用什麼字型
一般都是設定/etc/fonts/local.conf
但SuSE在/etc/fonts/fonts.conf中include了其他的設定
您可以修改/etc/fonts/suse-post-user.conf
...
<alias>
<family>serif</family>#這是serif的設定,其他Sans-serif,monospace您可以照這方法設定
<prefer>
<family>Times New Roman</family>#優先使用Times New Roman
<family>Thorndale AMT</family>#其次是Thorndale AMT
<family>SimSun</family>#前面兩個字型都沒有中文字,因此中文會優先使用SimSun
<family>AR PL ZenKai Uni</family>
<family>SUSE Serif</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Likhan</family>
<family>FreeSerif</family>
<family>Bitstream Vera Serif</family>
<family>Times</family>
<family>TSCu_Times</family>
<family>HGPMinchoL</family>
<family>IPAPMincho</family>
<family>Sazanami Mincho</family>
<family>Kochi Mincho</family>
<family>FZSongTi</family>
<family>FZMingTiB</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<family>HanyiSong</family>
<family>ZYSong18030</family>
</prefer>
</alias>
...
simsun因為內建了點陣字,因此在顯示小字時非常清晰
要設定使用點陣字
可以設定/etc/fonts/suse-pre-user.conf
...
<!--
To prefer bitmap fonts whereever possible
put the following rule in your personal ~/.fonts.conf file:
<match target="pattern">此段落為註解
<edit name="prefer_bitmap">
<bool>true</bool>
</edit>
</match>
-->
<match target="pattern">
<edit name="prefer_bitmap">
<bool>true</bool>#將這裡設成true
</edit>
</match>
<!--
To use embedded bitmaps in TrueType fonts always when available
put the following rule in your personal ~/.fonts.conf file:
<match target="pattern">#此段落為註解
<edit name="embeddedbitmap">
<bool>true</bool>
</edit>
</match>
-->
<match target="pattern">
<edit name="embeddedbitmap">
<bool>true</bool>還有這裡也設成true
</edit>
</match>
...
這樣設定完後,內建點陣字的字型(例如simsun,uming,fireflysung)就會優先使用點陣字
您可以試試看uming(AR PL ShanHeiSun Uni)這個字型
內建了firefly的點陣字
http://www.freedesktop.org/wiki/Software_2fCJKUnifonts
解開壓縮檔,將其中的uming.ttf複製到
/usr/X11R6/lib/X11/fonts/truetype/下
設定在sans或sans-serif的第二順位
這樣中英文效果都很好
大家可以參考一下 |
|