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

Akira TAGOH akira at tagoh.org
Wed May 30 19:22:00 PDT 2012


On Wed, May 30, 2012 at 10:00 PM, Raimund Steger <rs at mytum.de> wrote:
> OK I think I get it now. You want the lang from the environment already at
> the time of config substitution, so that you can still react on it in the
> course of your normal ~/.fonts.conf, and preferably inferred from your
> normal locale settings without having to set any program-specific separate
> configuration files etc.?

Exactly.

>
> Well in that case Akira's fix seems quite useful.
>
> I think that changing the recommended order of the API calls otherwise isn't
> a good idea, too, because the user should be the first instance that has the
> opportunity to specify defaults for missing properties, except maybe on such
> highly content-specific/dynamic properties as 'lang'.

Right.

FWIW we should get rid of the code to add the lang in
FcDefaultSubstitute() because it won't takes any effects any more.

-- 
Akira TAGOH


More information about the Fontconfig mailing list