|
发表于 2004-11-10 22:29:40
|
显示全部楼层
给个local.conf你把
[PHP]<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Uncomment below to enable all bitmapped fonts -->
<!--
<dir>/usr/X11R6/lib/X11/fonts</dir>
-->
<!--
Use Helvetica
-->
<dir>/usr/X11R6/lib/X11/fonts/75dpi</dir>
<!--
Enable subpixel rendering
<match target="font">
<test qual="all" name="rgba">
<const>unknown</const>
</test>
<edit name="rgba" mode="assign"><const>rgb</const></edit>
</match>
-->
<!--
Use embedded font
<match target="font">
<edit name="embed" mode="assign">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
-->
<!--
Add by firefly@firefly.idv.tw
Disable "Global Advance" for all mono spacing fonts.
<match target="font">
<test name="spacing" compare="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">
<test target="pattern" name="weight" compare="more">
<const>medium</const>
</test>
<edit name="weight" mode="assign">
<const>bold</const>
</edit>
</match>
-->
<!--
Add by firefly@firefly.idv.tw
Enable "hinting & autohint" for all fonts.
<match target="font">
<test name="family" compare="eq">
<string>SimSun</string>"or"<string>MingLiu</string>"or"<string>Bitstream Cyberbit</string>"or"<string>AR PL KaitiM Big5</string>"or"<string>AR PL Mingti2L Big5</string>"or"<string>AR PL KaitiM GB</string>"or"<string>AR PL SungtiL GB</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
-->
<!--
Enable "hinting & autohint" for all fonts.
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
-->
<!--
Disable antialias when "7<pixelsize<19"
-->
<match target="font">
<test qual="any" name="family">
<string>SimSun</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>7</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>19</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test qual="any" name="family">
<string>NSimSun</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>7</int>
</test>
<test name="pixelsize" compare="less_eq">
<int>19</int>
</test>
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
</match>
<!--
Display with combination of SimSun & Helvetica
-->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>SimSun</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>Helvetica</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>NSimSun</string>
</test>
<edit name="family" mode="prepend_first" binding="strong">
<string>Helvetica</string>
</edit>
</match>
<!--
binding Bitstream Vera Sans Mono to AR PL SungtiL GB & AR PL Kaitim GB
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>AR PL SungtiL GB</string>
</test>
<edit name="family" mode="prepend_first" binding="strong">
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family" compare="eq">
<string>AR PL Kaitim GB</string>
</test>
<edit name="family" mode="prepend_first" binding="strong">
<string>Bitstream Vera Sans</string>
</edit>
</match>
-->
<!--
bingding Bitstream Vera Sans Mono to monospace
-->
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>Bitstream Vera Sans Mono</string>
</edit>
</match>
</fontconfig>
[/PHP] |
|