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

Jjgod Jiang gzjjgod at gmail.com
Tue May 29 10:50:02 PDT 2012


Hi,

On Tue, May 29, 2012 at 7:39 PM, Keith Packard <keithp at keithp.com> wrote:
> Akira TAGOH <akira at tagoh.org> writes:
>
>> $ LANG=ja ./fc-match/fc-match
>> VL-PGothic-Regular.ttf: "VL P´·Ã¯" "regular"
>> $ LANG=zh_CN ./fc-match/fc-match
>> wqy-zenhei.ttc: "‡É cÑ" "Regular"
>> $ LANG=en_US ./fc-match/fc-match
>> DejaVuSans.ttf: "DejaVu Sans" "Book"
>> $ FC_DEBUG=4 FC_LANG=ja:zh-cn LANG=en_US ./fc-match/fc-match
>> ...
>> FcConfigSubstitute Pattern has 1 elts (size 16)
>>         lang: "ja"(w) "zh-cn"(w)
>
> Ah, ok. I do this in my .fonts.conf file today. Would an environment
> variable really be more useful?

How do you do that?

- Jiang


More information about the Fontconfig mailing list