自认为对fonts.conf的写法一直都很熟悉,但是有时自己写出的match无效,当然,很多时候是我自己并未完全明白匹配的内部机理。但是,这段match,我觉得也没什么问题的啊。
我的目的是:当SimSun和NSimSun小于9pt时用9pt代替,我这么写在local.conf中——
[code:1] <match target="font">
<test qual="any" name="family" compare="eq">
<string>SimSun</string>
<string>NSimSun</string>
</test>
<test name="size" compare="less">
<double>9</double>
</test>
<edit name="size" mode="assign">
<double>9</double>
</edit>
</match>[/code:1]
但是无效,SimSun始终能变成8pt的恶心样。
有什么问题吗?