uming的英文好难看哟!
我的uming英文实在是太难看了。我的配置:
<match target="font">
<test name="family">
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="antialias">
<bool>false</bool>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family">
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<test name="pixelsize" compare="more_eq">
<int>17</int>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
</match>
也不知道是不是我的配置不好。如果有兄弟有好的配置,不妨贴一个给俺试试。 我贴一个,我现在用的勉强还行。
这里有好的那我也来分个。
~/.fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<include ignore_missing="yes">/var/lib/defoma/fontconfig.d/fonts.conf</include>
<!-- Uncomment below to enable bitmapped fonts -->
<dir>/usr/X11R6/lib/X11/fonts/TrueType</dir>
<!-- Uncomment below to 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>
<!--
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 name="spacing" compare="more_eq">
<const>mono</const>
</test>
<edit name="globaladvance" mode="assign">
<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 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 [email protected]
-->
<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>
<!-- Enable hint and autohint for all fonts -->
<!--match target="font">
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>true</bool></edit>
</match-->
<!-- Disable autohint for ArphicMBE -->
<match target="font">
<test qual="any" name="family" compare="eq">
<string>AR PL ZenKai Uni</string>
<string>AR PL ZenKai Uni MBE</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<edit name="globaladvance"><bool>false</bool></edit>
<edit name="spacing"><int>0</int></edit>
</match>
<!-- Disable font alias for ArphicMBE Kai -->
<match target="font">
<test qual="any" name="family" compare="eq">
<string>AR PL ZenKai Uni</string>
<string>AR PL ZenKai Uni MBE</string>
</test>
<edit name="antialias"><bool>true</bool></edit>
<edit name="hinting"><bool>false</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
<!-- Disable font alias for ArphicMBE Sun -->
<match target="font">
<test qual="any" name="family" compare="eq">
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<edit name="antialias"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match>
<!-- Disable font alias for ArphicMBE Sun 17 -->
<match target="font">
<test name="family">
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<test name="pixelsize" compare="more_eq"><int>17</int></test>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
</match>
<!-- Disable font alias for Chinese 12-16 -->
<!--match target="font">
<test qual="any" name="family" compare="eq">
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</test>
<test name="pixelsize" compare="more_eq"><double>12</double></test>
<test name="pixelsize" compare="less_eq"><double>18</double></test>
<edit name="antialias"><bool>false</bool></edit>
<edit name="hinting"><bool>true</bool></edit>
<edit name="autohint"><bool>false</bool></edit>
</match-->
<!-- -->
<!--alias>
<family>AR PL ZenKai Uni</family>
<family>AR PL ZenKai Uni MBE</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
<default>
<family>sans-serif</family>
<family>serif</family>
<family>monospace</family>
</default>
</alias-->
<!-- -->
<!--match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>Bitstream Vera Serif</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="append" binding="strong">
<string>Bitstream Vera Sans</string>
<string>AR PL ZenKai Uni</string>
<string>AR PL ZenKai Uni MBE</string>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</edit>
</match>
<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>
<string>AR PL ShanHeiSun Uni</string>
<string>AR PL ShanHeiSun Uni MBE</string>
</edit>
</match-->
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>AR PL ZenKai Uni</family>
<family>AR PL ZenKai Uni MBE</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>AR PL ShanHeiSun Uni MBE</family>
</prefer>
</alias>
</fontconfig>
嗨,这个跟我的效果差不多。关键是uming的字体在显示英文和数字的时候很难看,大小也不相同,非常的丑。 偶然的机会,我发现把firefox的字体设置成其他,而不用默认,浏览网页时就不会显示出难看的uming英文了。字体配置文件还是老样子,不用更改。 yangtse@yangtse:~$ cat /etc/fonts/local.conf
<?xml version="1.0"?>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<family>Microsoft Yahei</family>
<family>DejaVu Serif</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<family>Microsoft Yahei</family>
<family>DejaVu Sans</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Microsoft Yahei</family>
<family>DejaVu Sans Mono</family>
<family>AR PL ShanHeiSun Uni</family>
<family>WenQuanYi Bitmap Song</family>
<family>AR PL ZenKai Uni</family>
</prefer>
</alias>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
<edit mode="assign" name="autohint" >
<bool>false</bool>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<test name="weight" compare="less_eq">
<int>100</int>
</test>
<test compare="more_eq" target="pattern" name="weight" >
<int>180</int>
</test>
<edit mode="assign" name="embolden" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<test name="family" compare="contains" >
<string>Song</string>
<string>Sun</string>
<string>Kai</string>
<string>Ming</string>
</test>
<edit name="globaladvance">
<bool>false</bool>
</edit>
<edit name="spacing">
<int>0</int>
</edit>
<edit name="hinting">
<bool>true</bool>
</edit>
<edit name="autohint">
<bool>false</bool>
</edit>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<test name="pixelsize" compare="less_eq">
<int>18</int>
</test>
<edit name="antialias" mode="assign" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
yangtse@yangtse:~$ 楼上的,你的配置文件也没有对uming作出调整呀。我试了,在显示数字和英文的时候还是一样,大小不一,很丑。
看来uming禁用aa后,英文就是这个样子了。所以,我考虑在使用英文字体,在需要中文的时候才用uming,这样不知道会不会好一些。 用了sir上一位兄弟的配置文件,感觉还不错,数字好了很多。不过,我不用simsun,拒绝ms。
http://www.linuxsir.org/main/?q=node/94
页:
[1]