可是不管怎麼樣,我進gnome環境永遠用預設的文鼎楷體耶@_@
附上我的這兩個檔案:
以下是fonts.conf
- 代碼: 選擇全部
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<match target="pattern">
<test name="family" compare="eq">
<string>serif</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Times</string>
<string>Bitstream Vera Serif</string>
<string>AR PL New Sung</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="eq">
<string>sans-serif</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Bitstream Vera Sans</string>
<string>AR PL New Sung</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="eq">
<string>mono</string>
</test>
<edit name="family" mode="assign" binding="strong">
<string>Bitstream Vera Sans Mono</string>
<string>AR PL New Sung</string>
</edit>
</match>
<match target="font">
<test name="family">
<string>AR PL New Sung</string>
</test>
<test name="pixelsize" compare="less">
<int>16</int>
</test>
<edit name="hinting">
<bool>false</bool>
</edit>
<edit name="antialias">
<bool>false</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
</match>
-->
<!--
Add by Firefly(firefly@firefly.idv.tw)
-->
<match target="font">
<edit name="embeddedbitmap" mod="assign">
<bool>true</bool>
</edit>
</match>
<!--
Add by Firefly(firefly@firefly.idv.tw)
Most of Asian fonts can't explain by freetype2,
so,if these fonts have dual width(half/full) and monospacing,
you need to disable globaladvance.
-->
<match target="font">
<test name="spacing" compare="more_eq">
<const>mono</const>
</test>
<edit name="globaladvance" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Add by firefly@firefly.idv.tw
Artificial bold for fonts without a bold version.
-->
<match target="font">
<!-- check to see if the pattern requested > "medium" -->
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
<!--
Add by firefly@firefly.idv.tw
-->
<match target="pattern">
<test name="lang" compare="contains">
<string>zh-tw</string>
<string>zh-cn</string>
<string>zh-hk</string>
<string>zh-mo</string>
<string>zh-sg</string>
<string>ja</string>
<string>ko</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="usegamma" mode="assign">
<if>
<less>
<name>pixelsize</name>
<double>20</double>
</less>
</if>
<bool>true</bool>
<bool>false</bool>
</edit>
</match>
<config>
<!--
Add by Firefly (firefly@firefly.idv.tw)
Output non English/Latin family name.
-->
<familyoutput>
<const>auto</const>
<!--const>englishonly</const-->
<!--const>any</const-->
</familyoutput>
</config>
</fontconfig>
以下是local.conf
- 代碼: 選擇全部
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/usr/local/share/fonts</dir>
<dir>~/.fonts</dir>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Versa Sans</family>
<family>AR PL New Sung</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Versa Serif</family>
<family>AR PL New Sung</family>
</prefer>
</alias>
<alias>
<family>mono</family>
<prefer>
<family>Bitstream Versa Sans Mono</family>
<family>AR PL New Sung</family>
</prefer>
</alias>
</fontconfig>