[Fontconfig-bugs] [Bug 57114] New: regression on FcFontMatch with namelang

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 14 02:13:32 PST 2012


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

          Priority: medium
            Bug ID: 57114
          Assignee: fontconfig-bugs at lists.freedesktop.org
           Summary: regression on FcFontMatch with namelang
        QA Contact: freedesktop at behdad.org
          Severity: major
    Classification: Unclassified
                OS: All
          Reporter: akira at tagoh.org
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: library
           Product: fontconfig

After the fix of Bug27765, 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.

-- 
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/20121114/981cc81b/attachment.html>


More information about the Fontconfig-bugs mailing list