[Fontconfig] any possible trouble by adding lang to the pattern by default

Akira TAGOH akira at tagoh.org
Fri Jun 1 06:11:25 PDT 2012


On Fri, Jun 1, 2012 at 8:36 PM, Raimund Steger <rs at mytum.de> wrote:
> But that would only affect applications that don't use
> FcDefaultSubstitute, right? Because FcDefaultSubstitute added the lang
> from the environment anyway.

No. but how it affects depends on the rules you have. you might see
the different behavior when you have any language specific matching
rule on the system. because, previously such rules were not applied
due to no lang object in the pattern though, it's applied after this
change so that it ensure the lang object is always available in the
pattern.

Though of course it may gives you different result as well
with/without FcDefaultSubstitute() but whether the pattern built by
FcConfigSubstitute() contains additional family names etc affects
scoring to find the best font out.

-- 
Akira TAGOH


More information about the Fontconfig mailing list