[Fontconfig-bugs] [Bug 68377] New: lang attribute support for family tag

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 21 04:27:00 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=68377

          Priority: medium
            Bug ID: 68377
          Assignee: fontconfig-bugs at lists.freedesktop.org
           Summary: lang attribute support for family tag
        QA Contact: freedesktop at behdad.org
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: akira at tagoh.org
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: library
           Product: fontconfig

<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>

-- 
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/20130821/a7235a52/attachment.html>


More information about the Fontconfig-bugs mailing list