LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 984|回复: 1

fontconfig的一个问题,怀疑是bug

[复制链接]
发表于 2007-2-18 23:50:16 | 显示全部楼层 |阅读模式
下面的命令在各位的机器上输出什么结果?
fc-match "Bitstream vera sans:style=Regular"
我的机器上输出:
Bitstream-Vera-Sans-Bold-Oblique.ttf: "Bitstream Vera Sans" "Bold Oblique"


fc-match "Bitstream vera sans"

fc-match "Bitstream vera sans:style=Roman"
都产生如下输出:
Bitstream-Vera-Sans.ttf: "Bitstream Vera Sans" "Roman"

这个问题导致我的字体配置在绑定中英文字体的时候选择“Bold Oblique"而不是Roman
我现在用的版本是2.4.2-1。移除自定义的设定后依旧产生以上输出,怀疑是bug
目前只好使用以下设置来绕过这个问题:
<match target="pattern">
        <test name="style" compare="eq">
                <string>Regular</string>
        </test>
        <edit name="style" mode="assign">
                <string>Roman</string>
        </edit>
</match>

麻烦大家帮忙测试一下,如果确认我就去提交bug
发表于 2007-2-20 21:30:19 | 显示全部楼层
似乎是style=Regular不匹配,就选中这个Bold Oblique,
不管是Regular还是什么,只要不匹配都是这个结果,可能Bold Oblique成了缺省的了,也许不是多数人想要的吧,也许算是BUG吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表