为什么中英文混合显示的时候,英文偏小?
由于系统升级,把以前的fonts.conf和local.conf文件弄丢了。现在修改后,发现中英文显示时,英文明显比中文要小一号,这是为什么? 没有人知道吗?顶 其实楼主的字体已经相当不错了.如果想尽善尽美,还是把自己的系统,版本说的清楚一点.
Xft+fonts.conf的方式还是很容易配置. 我使用的Debian,local.conf配置如下:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
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 [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 name="family">
<string>Tahoma</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>SimSun</string>
</edit>
</match>
-->
<match target="pattern" >
<test compare="eq" name="family" qual="any" >
<string>AR PL KaitiM Big5</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 Mingti2L Big5</string>
</test>
<edit mode="prepend_first" binding="strong" name="family" >
<string>Bitstream Vera Serif</string>
</edit>
</match>
<!--
default settings for all fonts.
-->
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting" >
<bool>true</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>
-->
<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>
<string>SimSun</string>
<string>NSimSun</string>
</test>
<!--
<edit mode="assign" name="globaladvance" >
<bool>false</bool>
</edit>
-->
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
<!--
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
-->
<edit mode="assign" name="hintstyle" >
<const>hintfull</const>
</edit>
<edit mode="assign" name="rh_prefer_bitmaps" >
<bool>true</bool>
</edit>
</match>
<config>
<!--
Add by Firefly ([email protected])
Output non English/Latin family name.
-->
<familyoutput>
<!--<const>auto</const>-->
<!--const>englishonly</const-->
<const>any</const>
</familyoutput>
</config>
</fontconfig>
页:
[1]