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

Akira TAGOH akira at tagoh.org
Tue May 29 19:47:46 PDT 2012


On Wed, May 30, 2012 at 7:02 AM, Raimund Steger <rs at mytum.de> wrote:
> LANG (as opposed to FC_LANG) *is* already used to provide a default value
> dynamically, provided programs use FcDefaultSubstitute which I think they
> all do.
>
> (BTW- Akira- is there a special reason why applying the new string set
> needed to be done in FcConfigSubstituteWithPat in addition to
> FcDefaultSubstitute?)

Well, honestly I don't still even have the reasonable answer for that
though, FcDefaultSubstitute() seems supposed to call after
FcConfigSubstitute().

https://bugs.freedesktop.org/show_bug.cgi?id=35482#c2

I guess because it may affects too many things on building the
pattern? Keith or Behdad?

Anyway, so I did it separately to avoid dirty pattern.

> In case you need a different configuration for individual programs and
> cannot modify LANG for those, i. e. as would be possible through FC_LANG, I
> suspect you could create a file like:
...
> FONTCONFIG_FILE=your.config.file fc-match

Hmm, yeah.. though if you are sure there are no config files that
checks the lang object before looking at 50-user.conf, no need to do
that nor "include" /etc/fonts/fonts.conf in your .fonts.conf.

-- 
Akira TAGOH


More information about the Fontconfig mailing list