<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 13, 2014 at 4:09 PM, Jungshik SHIN (신정식) <span dir="ltr"><<a href="mailto:jshin1987@gmail.com" target="_blank">jshin1987@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>This is about <a href="https://bugs.freedesktop.org/show_bug.cgi?id=82582" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=82582</a>. </div>
<div><br></div><div>In the past (e.g. fontconfig 2.7.x), I could use the following to apply <edit>'s to a group of font families : </div>
<div><br></div><div><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><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></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">With a newer version of fontconfig (e.g. 2.11.1), I got a warning that 'multiple strings test are not supported and may not work as intended'. Despite that warning, it still works as I intended :-). </pre>
<pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">Anyway, I wanted to find a warning-free way to express the same in a compact way (i.e. instead of repeating <edit>'s for each family in the above group (if it's only 4, it may be ok, but I also have another group with over 30 families). </pre>
<pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">My first attempt in the bug 82582 failed (somehow, <edit>'s were applied to all other fonts NOT listed in <test>). Behdad suggested a couple of other ways. The first (in comment 0) of his two alternatives did not work (edits are not applied to the 4 fonts above). </pre>
</div></div></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">
The second (in comment #1 of the bug) one worked but I got an warning about <test> not having 'name'. </pre></div></div></blockquote><div><br></div><div>I was wrong about the second one (in comment #1 of the bug). It does not work, either because <edit>'s meant for 4 fonts are applied to all other fonts as well. </div>
<div><br></div><div>So, at the moment, the only way to achieve what I want I know of is to use the old expression and ignore the warning. It'd be great if there's a way to do the same without a warning. </div><div>
<br></div><div>Thanks. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">
<br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">I wonder if any on the list knows how to achieve what I want to do (apply multiple edits to a group of fonts matching family name) in a compact manner without a warning from fontconfig 2.11.x. </pre>
<pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">BTW, I also tried replacing 'contains' with 'eq', but didn't change anything I wrote above. </pre>
<pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">Thanks in advance, </pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">
<br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">Jungshik </pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">
<br></pre></div></div>
</blockquote></div><br></div></div>