|
楼主 |
发表于 2005-5-25 23:08:19
|
显示全部楼层
不过,在oo上用其它字体是没有问题的,粗细斜都可以,但对simsun只认到粗体,不过ubuntu可以认到simsun的粗细。原来射雕兄的美化可以去锯齿,但是12号以下的以用了autohint,所以很模糊,我改了XP效果,对12号以下的只用simsun本身的hinting,代码如下(修改过): <!-- 修改过的 Win XP 效果 -->
<match target="font">
<test name="family"><string>SimSun</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="globaladvance"><bool>false</bool></edit>
</match>
<match target="font">
<test qual="any" name="family"><string>SimSun</string></test>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>false</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
</match>
<match target="font">
<test qual="any" name="family"><string>Vera Sans YuanTi Mono</string></test>
<test compare="more_eq" name="pixelsize" qual="any" ><double>12</double></test>
<test compare="less_eq" name="pixelsize" qual="any" ><double>16</double></test>
<edit name="antialias" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>true</bool></edit>
</match>
<match target="font">
<test qual="any" name="family"><string>Vera Sans YuanTi Mono</string></test>
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<edit name="hinting" mode="assign"><bool>false</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>false</bool></edit>
</match>
<match target="font">
<test qual="any" name="family"><string>SimSun</string></test>
<test compare="more_eq" name="pixelsize" qual="any" ><double>12</double></test>
<test compare="less_eq" name="pixelsize" qual="any" ><double>16</double></test>
<edit name="antialias" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>true</bool></edit>
</match>
<!--
下面这段使12号以下宋体的AA关闭而清晰
-->
<match target="font">
<test qual="any" name="family"><string>SimSun</string></test>
<test compare="less_eq" name="pixelsize"><double>12</double></test>
<edit name="antialias" mode="assign"><bool>false</bool></edit>
<edit name="hinting" mode="assign"><bool>true</bool></edit>
<edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
<edit name="autohint" mode="assign"><bool>false</bool></edit>
<edit name="rh_prefer_bitmaps" mode="assign"><bool>true</bool></edit>
</match> |
|