|
对于网页的粗体,我认为还是宋体的好,不想把原来的粗宋强行变为粗圆;又观察了“射雕”和“topmint”的美化方法,把他们所需的字体都下载回来,都放到/etc/fonts/下面,然后通过多频繁的反复试验修改fonts.conf,最终确定了字符零乱是等宽字体的问题,并得到了粗宋(我用topmint的方法得不了粗体,不知为何)。
首先,我把
<family>Vera Sans YuanTi Mono</family>
和
<family>SimSun</family>
<family>Tahoma</family>
都加到fonts.conf里面,然后改动
<!-- Win XP 效果 出自“射雕”兄,把Vera Sans YuanTi都改为SimSun-->
<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>SimSun</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>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>
<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>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>
这样我就得到了粗圆的另一种效果,就是清晰了的粗圆,还是没有得到粗宋,再作如下修改:
<!--
Provide required aliases for standard names
-->
<alias>
<family>serif</family>
<prefer>
<family>Bitstream Vera Serif</family>
<!-- <family>Vera Sans YuanTi</family> 关了Vera Sans YuanTi added by lifesinger-->
<family>SimSun</family> <!-- added by myself -->
<family>Tahoma</family> <!-- added by myself -->
<family>Times New Roman</family>
<family>Nimbus Roman No9 L</family>
<family>Luxi Serif</family>
<family>Times</family>
<family>Frank Ruehl</family>
<family>Kochi Mincho</family>
<family>AR PL SungtiL GB</family>
<family>AR PL Mingti2L Big5</family>
<family>Baekmuk Batang</family>
<family>FreeSerif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Bitstream Vera Sans</family>
<!-- <family>Vera Sans YuanTi</family> 关了Vera Sans YuanTi added by lifesinger-->
<family>SimSun</family> <!-- added by myself -->
<family>Tahoma</family> <!-- added by myself -->
<family>Verdana</family>
<family>Nimbus Sans L</family>
<family>Luxi Sans</family>
<family>Arial</family>
<family>Helvetica</family>
<family>Nachlieli</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
<family>Baekmuk Dotum</family>
<family>SimSun</family>
<family>FreeSans</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Bitstream Vera Sans Mono</family>
<family>Vera Sans YuanTi Mono</family> <!--错在此 ,如果去了 Vera Sans YuanTi Mono就会出现字符零乱的现象 added by lifesinger-->
<family>SimSun</family> <!-- added by myself -->
<family>Tahoma</family> <!-- added by myself -->
<family>Andale Mono</family>
<family>Courier New</family>
<family>Luxi Mono</family>
<family>Nimbus Mono L</family>
<family>Miriam Mono</family>
<family>Kochi Gothic</family>
<family>AR PL KaitiM GB</family>
<family>Baekmuk Dotum</family>
<family>FreeMono</family>
</prefer>
</alias>
终于在见面上面得到了粗宋了!只是还有点像原来粗圆那样模糊,字符大大减少零乱现象的出现机率。只要把XP效果去掉,所有宋体字都会清晰起来,但是对14号以上的粗宋就会有很明显的锯齿现象。
(补充段)如果你觉得 对 模糊的 宋体小字不满意,可以对XP效果做如下修改,可以直接把原来射雕兄的XP效果换掉, 这样,12号以下的宋体字就清晰了。(注意,没有开 AA的细 宋体字会偶尔出现破碎现象,因为对宋体simsun的支持没有射雕兄的圆体那样好的稳定性。)
<!-- 修改过的 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>
图二为原来射雕的粗圆效果,图一是清晰的粗圆。 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|