Thanks for pointing me at fontconfig-voodoo, that seems to now give the right results for Japanese text. However it seems to do this at the expense of everything else:
without fontconfig-voodoo:
pm215@canth:~/jlptvocab$ fc-match Sans:lang=zh
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "中等"
pm215@canth:~/jlptvocab$ fc-match Sans:lang=ja
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "中等"
pm215@canth:~/jlptvocab$ fc-match Sans
DejaVuSans.ttf: "DejaVu Sans" "Book"
Thanks for pointing me at fontconfig-voodoo, that seems to now give the right results for Japanese text. However it seems to do this at the expense of everything else:
without fontconfig-voodoo: ~/jlptvocab$ fc-match Sans:lang=zh ~/jlptvocab$ fc-match Sans:lang=ja ~/jlptvocab$ fc-match Sans
pm215@canth:
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "中等"
pm215@canth:
wqy-zenhei.ttc: "WenQuanYi Zen Hei" "中等"
pm215@canth:
DejaVuSans.ttf: "DejaVu Sans" "Book"
with fontconfig-voodoo -f -s ja_JP: ~/jlptvocab$ fc-match Sans:lang=zh Regular. ttf: "VL PGothic" "regular" ~/jlptvocab$ fc-match Sans:lang=ja Regular. ttf: "VL PGothic" "regular" ~/jlptvocab$ fc-match Sans Regular. ttf: "VL PGothic" "regular"
pm215@canth:
VL-PGothic-
pm215@canth:
VL-PGothic-
pm215@canth:
VL-PGothic-
(In particular, the effect of this is that plain old English text, like the dialog text in gnome-language- selector itself, looks ugly and blurry.)
Isn't it possible to configure fontconfig to give me the right font based on the lang= specification?