Comment 14 for bug 835304

Revision history for this message
Jinkyu Yi (jincreator) wrote :

Gunnar,

> What is the "lang" option in fontconfig?

I mean, something like this...

    <test qual="any" name="lang" compare="contains">
      <string>ko</string>
    </test>

This code make NanumGothic, NanumMyeongjo, NanumGothicCoding is default font for Sans, Serif, Monospace only at Korean locale.
But it's not working at latest Ubuntu, in my test.
And according to LP: #884645, I think it is not working for Japanese locale, too.

> Is it possibly something that makes the LANG env. variable control the fontconfig settings, and can this have something to do with the fact that language-selector's fontconfig hack basically has been controlled by the LANGUAGE env. variable (i.e. not LANG)?

When use "lang", locale can affect to fontconfig settings.
But I'm not sure which env. variable affect to fontconfig exactly.
I'm testing with LANG(ex: export LANG=ko_KR.UTF-8 && fc-match sans).
But language-selector's fontconfig hack(file name starting with '69~lang...') doesn't need it because language-selector automatically link file to matching locale environment.