[Pkg-fonts-devel] Bug#652516: Korean font breakage
Changwoo Ryu
cwryu at debian.org
Thu May 8 16:34:53 UTC 2014
2014-05-08 22:33 GMT+09:00 Osamu Aoki <osamu_aoki_home at nifty.com>:
> Hi,
>
> On Thu, May 08, 2014 at 04:15:16AM +0900, Changwoo Ryu wrote:
>> Installing hedgewars broke system default Korean font preference! I
>> don't know why wqy-series maintainers keep Korean glyphs in their font
>> series. They just make problems than benefits.
>>
>> How about using language specific pattern match, instead of <alias>? For
>> example I have used this in fonts-nanum until Nanum was added to the
>> fontconfig default config.
>>
>> ...
>> <match target="pattern">
>> <test qual="any" name="lang" compare="contains">
>> <string>ko</string>
>> </test>
>> <test qual="any" name="family" compare="eq">
>> <string>sans-serif</string>
>> </test>
>> <edit name="family" mode="prepend_first" binding="same">
>> <string>NanumGothic</string>
>> </edit>
>> </match>
>
> Interesting idea.
>
> By the way, what sets "lang" to certain value. LANG environment?
Yes it's determined by locale value. <match> with <test name="lang">
can make different configs per locale.
https://fedoraproject.org/wiki/Fontconfig_packaging_tips#Locale-specific_overrides
> Is there any way to set priority order for LANG=en via some
> configuration script? Then we can solve this CJK font priority order
> issue for fontconfig default config.
Only for LANG=en?
<match>
<test name="lang" compare="contains"><string>en</string></test>
...append fonts...
</match>
Or you can add such this for all non-CJK locales..
<match>
<test name="lang" compare="not_contains"><string>ja</string></test>
<test name="lang" compare="not_contains"><string>ko</string></test>
<test name="lang" compare="not_contains"><string>zh</string></test>
...append fonts...
</match>
More information about the Pkg-fonts-devel
mailing list