[Fontconfig-bugs] [Bug 82582] Warn if config is wrong
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 13 15:56:34 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=82582
--- Comment #1 from Jungshik Shin <jungshik.shin at gmail.com> ---
<match target="font">
<test name="family" compare="contains">
<or>
<string>MYingHeiB5HK</string>
<string>MYingHeiGB18030</string>
<string>MSung GB18030</string>
<string>MSung B5HK</string>
</or>
</test>
<edit ....... </edit>
</match>
The above doesn't give any warning. Nor did it affect other fonts (that are not
listed in <test>) but <edit> is not applied to the fonts listed in <test>.
Replacing the nested <test> as shown below works but I got a warning that 'test
does not have a name'.
<test>
<or>
<test name=...>
<test name=...>
</or>
The old form (that worked in 2.7.x) still works even though I got a warning
about 'multiple values in test'.
I also tried the old expression with 'qual="any"' added. It works as intended
(that is, for any of the 4 fonts listed, <edit> is applied), but gave me the
same warning about 'multiple values in test'.
<test name="family" compare="contains" qual="any">
<string>MYingHeiB5HK</string>
<string>MYingHeiGB18030</string>
<string>MSung GB18030</string>
<string>MSung B5HK</string>
</test>
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20140813/a7894f4c/attachment.html>
More information about the Fontconfig-bugs
mailing list