<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 --- - lang attribute support for family tag"
href="https://bugs.freedesktop.org/show_bug.cgi?id=68377">68377</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>fontconfig-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>lang attribute support for family tag
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>freedesktop@behdad.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>All
</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><family> tag is used for <alias> though, sometimes wants to add the family
conditionally, particularly for certain language. <alias> is capable to have
<test> elements but may be a good idea to have the lang attribute to <family>
as another syntactic sugar:
<alias>
<family>serif</family>
<prefer>
...
<family lang="ja">MS Mincho</family>
<family lang="zh-cn,zh-tw">AR PL ShanHeiSun Uni</family>
...
</prefer>
</alias>
interpreted like:
<match>
<test name="family">
<string>serif</string>
</test>
<test name="lang">
<string>ja</string>
</test>
<edit name="family" mode="prepend">
<string>MS Mincho</string>
</edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<test name="lang">
<string>zh-cn</string>
</test>
<edit name="family" mode="prepend">
<string>AR PL ShanHeiSun Uni</string>
</edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<test name="lang">
<string>zh-tw</string>
</test>
<edit name="family" mode="prepend">
<string>AR PL ShanHeiSun Uni</string>
</edit>
</match></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>