[Fontconfig] How to delete "ja" lang from a specific font?
fundawang at gmail.com
Mon Oct 6 19:35:49 PDT 2008
2008/10/7 Kenichi Handa <handa at m17n.org>:
> In article <48EA4E43.1040800 at nmr.mgh.harvard.edu>, Qianqian Fang <fangq at nmr.mgh.harvard.edu> writes:
>> an ugly fix would be adding the following block to your ~/.fonts.conf,
>> replacing "Kochi Gothic" with your favorite Japanese font.
>> <match target="pattern">
>> <test equal="any" compare="eq" name="family">
>> <string>WenQuanYi Zen Hei</string>
>> <test equal="any" compare="eq" name="lang">
>> <edit name="family" mode="prepend" binding="strong">
>> <string>Kochi Gothic</string>
> Thank you for the prompt reply. But, with that in
> ~/.fonts.conf, "WenQuanYi Zen Hei" is still listed by the
> command "fc-list :lang=ja".
>> The best solution would be re-optimize the font rendering order
>> in 65-nonlatin.conf by fontconfig upstream, which I have heard
>> that Badhad is doing it right now.
> I'm not sure that is a good solution. As we already have
> better Japanese fonts than "WenQuanYi Zen Hei", I think just
> telling fontconfig that the font doesn't support "ja" is the
> simplest and best solution. Isn't it possible?
Then something like <rejectfont>?
> Kenichi Handa
> handa at ni.aist.go.jp
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
More information about the Fontconfig