+ -
当前位置:首页 → 问答吧 → fonts.conf 中手工粗体的疑惑?

fonts.conf 中手工粗体的疑惑?

时间:2006-07-28

来源:互联网

首先我没有用黑体替换 simsun.ttc 粗体之类的方法(替换是能正确显示黑体)。
而且我知道看到的 simsun 粗体是 fontconfig 给手工模拟的。
代码:
<!--
 Synthetic emboldening for fonts that do not have bold face available
 -->

 <match target="font">
 <!-- check to see if the font is just regular -->
 <test name="weight" compare="less_eq">
 <int>100</int>
 </test>
 <!-- check to see if the pattern requests bold -->
 <test target="pattern" name="weight" compare="more_eq">
 <int>200</int>
 </test>
 <!-- set the embolden flag -->
 <edit name="embolden" mode="assign">
 <bool>true</bool>
 </edit>
 </match>
上面这一段就是 fonts.conf 模拟粗体的语句。去掉后 linuxfans 里也看不到中文粗体了。

用 firefox 在 linuxsir 的版面看不到中文部分人工粗体,只看到英文部分的粗体,而在 linuxfans 却能看到二者。
用 konqueror 却能看到 linuxsir 的中文部分人工粗体,这个问题困惑好久。

作者: quanliking   发布时间: 2006-07-28

把那个200改成180试试

作者: lucida   发布时间: 2006-07-28

果然行了,谢谢楼上。
贴张效果图。
有个建议,是不是论坛的程序改改,省得大伙都手动改。
上传的图像
firefox-simsunBold.png (81.5 KB, 45 次查看)

作者: quanliking   发布时间: 2006-07-28

热门下载

更多