<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:akira@tagoh.org" title="Akira TAGOH <akira@tagoh.org>"> <span class="fn">Akira TAGOH</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Warn if config is wrong"
href="https://bugs.freedesktop.org/show_bug.cgi?id=82582">bug 82582</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>akira@tagoh.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Warn if config is wrong"
href="https://bugs.freedesktop.org/show_bug.cgi?id=82582#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Warn if config is wrong"
href="https://bugs.freedesktop.org/show_bug.cgi?id=82582">bug 82582</a>
from <span class="vcard"><a class="email" href="mailto:akira@tagoh.org" title="Akira TAGOH <akira@tagoh.org>"> <span class="fn">Akira TAGOH</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=82582#c0">comment #0</a>)
<span class="quote">> I *think* the correct way to write it is:
>
> <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> </span >
That doesn't even work. the required value types to test depends on the value
of the "name". at the above example, string, and sometimes integer, boolean
etc. but <or> always returns a boolean. so that fails.
I think too it is the way to go sensuously though, then the kind of the boolean
operators may needs to be fixed to work as <test> similarly. the current
implementation for them is really useless.
<span class="quote">> I hear in the past (with 2.7.x), this used to work:
>
> <match target="font">
> <test name="family" compare="contains">
> <string>MYingHeiB5HK</string>
> <string>MYingHeiGB18030</string>
> <string>MSung GB18030</string>
> <string>MSung B5HK</string>
> </test>
> <!-- Turn on light auto-hint -->
> <!-- Turn off sub-pixel anti-aliasing -->
> <edit name="hinting" mode="assign"><bool>true</bool></edit>
> <edit name="autohint" mode="assign"><bool>true</bool></edit>
> <edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
> <edit name="antialias" mode="assign"><bool>true</bool></edit>
> <edit name="rgba" mode="assign"><const>none</const></edit>
> </match>
>
> but with 2.11.x started warning about multiple strings in <test>...</span >
See <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Fontconfig doesn't match correctly in <test>"
href="show_bug.cgi?id=33644">Bug#33644</a>.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>