Bug 81186

Summary: In FcConfigSubstitute, don't add languages that already exist in FC_LANG
Product: fontconfig Reporter: Behdad Esfahbod <freedesktop>
Component: libraryAssignee: Akira TAGOH <akira>
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: akira, fontconfig-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Behdad Esfahbod 2014-07-10 17:47:49 UTC
Either that, or at the end of FcFontSort(), when we are picking patterns that satisfy FC_LANG languages, do NOT break out when we find a language that is being satisfied...

Right now, if one searches for FC_LANG=en, we end up adding another en at the end, so FC_LANG becomes en,en, which behaves differently from FC_LANG=en because it will move two English fonts to the front instead of one.
Comment 1 Akira TAGOH 2014-07-23 10:24:50 UTC
Fixed in git.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.