|
发表于 2003-6-23 09:13:43
|
显示全部楼层
那段代码我觉得理论上是错的!由于当字体小于17时,font.conf会assign一个bool的值给antialias(就是平滑),而你给的那个值和simsun一样是false,所以应该得到的结果是所有小于17的字体和无论大小的simsun都不平滑!但是firefly的fonts.conf很奇怪,加入一下这段后:
<!--
Add by firefly@firefly.idv.tw
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>
整个fong.conf好象就不能控制平滑了,无论你怎么改之前的那段,都不能把simsun以外的字体不要平滑!也许和他的rpm包有关!btw,你新的fonts.conf的那一段出现了两次!
还有一个对新手很好的消息,由于firefly用的是假的bold字体,所以,你现在其实可以直接用drakfont来导入字体了!效果和你自己写fonts.dir是一样的!这个我已经实验过了!
但是还是不明白,同样的fonts.dir在debian,rh上都能实现simsun的粗体,为什么mdk就不行呢? |
|