|
发表于 2004-10-4 18:14:45
|
显示全部楼层
你先备份一下你的local.conf,用这里替换一下。。
[code:1]<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<dir>/usr/share/fonts</dir>
<dir>/usr/share/fonts/ttf/zh_CN</dir>
<dir>/usr/share/fonts/zh_CN</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir>/usr/local/share/fonts</dir>
<!--
Enable sub-pixel rendering
<match target="font">
<test qual="all" name="rgba">
<const>unknown</const>
</test>
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
-->
<!--
Add by Firefly([email protected])
-->
<match target="font" >
<edit name="embeddedbitmap" mod="assign" >
<bool>true</bool>
</edit>
</match>
<!--
Add by Firefly([email protected])
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 compare="more_eq" name="spacing" >
<const>dual</const>
</test>
<edit mode="assign" name="globaladvance" >
<bool>false</bool>
</edit>
</match>
<!--
Add by [email protected]
Artificial bold for fonts without a bold version.
-->
<match target="font" >
<!-- check to see if the pattern requested > "medium" -->
<test compare="more" target="pattern" name="weight" >
<const>medium</const>
</test>
<!-- pretend the font is bold now -->
<edit mode="assign" name="weight" >
<const>bold</const>
</edit>
</match>
<match target="pattern" >
<test compare="eq" name="family" qual="any" >
<string>NSimSun</string>
</test>
<edit mode="prepend_first" binding="strong" name="family" >
<string>Bitstream Vera Sans</string>
</edit>
</match>
<!--
donn't _enable_ following lines if you _donnot_ know what your are doing.
-->
<!--
<match target="pattern" >
<test compare="eq" name="family" qual="any" >
<string>SimSun</string>
</test>
<edit mode="prepend_first" binding="strong" name="family" >
<string>Tahoma</string>
</edit>
</match>
-->
<!--
<match target="pattern" >
<test compare="eq" name="family" qual="any" >
<string>Courier New</string>
</test>
<edit mode="prepend_first" binding="strong" name="family" >
<string>Bitstream Vera Sans</string>
</edit>
</match>
-->
<match target="pattern" >
<test compare="eq" name="family" qual="any" >
<string>AR PL Kaitim GB</string>
</test>
<edit mode="prepend_first" binding="strong" name="family" >
<string>Bitstream Vera Sans</string>
</edit>
</match>
<!--
default settings for all fonts.
-->
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle" >
<const>hintsmedium</const>
</edit>
<edit mode="assign" name="hint" >
<bool>false</bool>
</edit>
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
</match>
<!--
bingding Bitstream Vera Sans Mono to monospace
-->
<match target="pattern" >
<test name="family" qual="any" >
<string>monospace</string>
</test>
<edit mode="append" binding="strong" name="family" >
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
<!--
enable autohints for non-cjk fonts.
-->
<match target="font" >
<test name="family" qual="any" >
<string>Bitstream Vera Sans Mono</string>
<string>Bitstream Vera Sans</string>
<string>Bitstream Vera Serif</string>
<string>monospace</string>
<string>Basemic Times</string>
<string>Bitstream Charter</string>
<string>Courier New</string>
<string>Lucida</string>
<string>Lucida Bright</string>
<string>Lucida Calligraphy</string>
<string>Lucida Console</string>
<string>Lucida Handwriting</string>
<string>Lucida Sans</string>
<string>Luxi Mono</string>
<string>Luxi Sans</string>
<string>Luxi Serif</string>
<string>Times</string>
<string>Arial</string>
</test>
<edit mode="assign" name="hint" >
<bool>false</bool>
</edit>
<edit mode="assign" name="autohint" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test compare="contains" target="pattern" name="lang" >
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
<test compare="eq" name="spacing" >
<const>mono</const>
</test>
<edit mode="assign" name="globaladvance" >
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" qual="any" >
<string>SimHei</string>
<string>FZHeiTi</string>
</test>
<edit mode="assign" name="globaladvance" >
<bool>false</bool>
</edit>
</match>
<!--
Add by [email protected]
-->
<match target="font" >
<test compare="contains" name="lang" >
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
<edit mode="assign" name="hint" >
<bool>true</bool>
</edit>
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
<edit mode="assign" name="usegamma" >
<if>
<less>
<name>pixelsize</name>
<double>20</double>
</less>
</if>
<bool>false</bool>
</edit>
</match>
<!--
don't use antialiasing if font size is between 6 and 18.
if you prefer AA fonts, you can simply comment out the following lines.
-->
<match target="font" >
<!--
<test compare="contains" name="lang" >
<string>zh-cn</string>
<string>zh-tw</string>
<string>ja</string>
<string>ko</string>
</test>
-->
<test compare="more_eq" name="size" qual="any" >
<double>6</double>
</test>
<test compare="less_eq" name="size" qual="any" >
<double>18</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
<!--
make some chinse font size not too small, if not they will look ugly.:(
-->
<match target="font" >
<test name="family" qual="any" >
<string>SimSun</string>
<string>NSimSun</string>
<string>LiSu</string>
<string>SimHei</string>
<string>FangSong_GB2312</string>
<string>KaiTi_GB2312</string>
<string>SimHei</string>
</test>
<test compare="more_eq" name="pixelsize" >
<int>9</int>
</test>
<test compare="less_eq" name="pixelsize" >
<int>12</int>
</test>
<edit compare="eq" name="pixelsize" >
<int>12</int>
</edit>
</match>
<config>
<other_family>
<bool>true</bool>
</other_family>
</config>
</fontconfig>
[/code:1] |
|