Bug 81186 - In FcConfigSubstitute, don't add languages that already exist in FC_LANG
Summary: In FcConfigSubstitute, don't add languages that already exist in FC_LANG
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Akira TAGOH
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-10 17:47 UTC by Behdad Esfahbod
Modified: 2014-07-23 10:24 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.