<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - regression on FcFontMatch with namelang"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57114">57114</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>regression on FcFontMatch with namelang
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>akira@tagoh.org
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>library
</td>
</tr>
<tr>
<th>Product</th>
<td>fontconfig
</td>
</tr></table>
<p>
<div>
<pre>After the fix of <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - FcMatch() returns style in wrong language"
href="show_bug.cgi?id=27765">Bug27765</a>, we have a ability to see the string with the certain
language if any though, it makes harder to write the consistent rules with
matching family, style and fullname.
Currently it take effects only when the above of objects are specified in the
pattern though, one needs to write possibly all of pattern matching on the
above objects because the result only contains strings what namelang expects.
i.e.
fc-match sans:namelang=ja
will returns the family name in Japanese if any, but style and fullname is
still in English. so if a rule contains:
<match target="font">
<test name="family">
<string>Gothic</string>
</test>
...
</match>
it may not be evaluated due to fail on matching with Gothic, but possibly ゴシック
in the font pattern.
Proposed solution for this issue is, always to add a string in English with
weak binding. that should helps.</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>