Comment 15 for bug 835304

Revision history for this message
Arne Goetje (arnegoetje) wrote : Re: [Ubuntu-translations-coordinators] [Bug 835304] Re: contained fontconfig setting files force to make it default font

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/04/2011 08:54 PM, Jinkyu Yi 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.

I remember it works on my Ubuntu 10.10, but I haven't tried on newer
Ubuntu releases.
However, the 'lang' tester is useful for other scenarios, namely when
you use a non-Korean locale and want to browse Korean websites, or text
snippets which have been tagged with lang=ko in their XML/HTML markup.
In that case firefox at least will choose the correct font automatically
if it hasn't been specified in the XML/HTML markup itself.
Also, at least on Ubuntu 10.10 that works.
Not sure if other applications also support that functionality.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJO3DQWAAoJENiwmJtstTzslz0QALXwCD7thb168kTjLxNsbR6X
T/i/uBdU3UrYuU70zHvS/je6SrQnqwH7X5IgohccLPKEl5Q5TzneIVj6QX96+6rb
1Gnolie6YaO30QMxLymcjk+1VJwQTtAcE4brDFQ6WlC27cuaeAgeV3ukM9G6tBKB
3avp23qoU99VKh2nOCLaFO7Bz94N1irgZn630mSqAg4Uyj25ubEIbgZkm005xV6w
FOLWN54mUOD5RASTwpWAsqf5hc7xgRIXM12l9n/ijPmu0/LM0WEZaZMSQCTEp4pS
Vc1G6LsyUeHoGd773L1UV6cPmuCew+yDPNU8QtMMePzXNUlw8//M7jmLL87RFdsk
0qx9xod7RM8YqdFwKfbE9aWfZ7aFnuQwre6H81lDuwazJjaJgze5fcQf6E5ChYaE
ewB4a/bAAmHLjuO3oiZvp/LnQLN/aiy23iPys+KlwpDxO/w8/+n+dsVchlX20Mzt
DezXJwAoERqLVRe18bJcemK0hX4lOcZIbt5JCzO+RczG9gmPxW+5oLlllLBnXnJQ
Zl5OyZKd2znAk3oAlVHJ+3i0E/rBMsQaZ6v0LkUQUaBA2qUkvFYg8qaxgolXcXjF
tMBCecWw8DQMrqnwJ20gGdBEeT8Uc1+kU3XdIVuGU6SLd9QjIVfWsTYOi42xrqJx
N82xF0zCjqWEIR8A6Cak
=r0SI
-----END PGP SIGNATURE-----