部分汉字(例如“复”)显示不正常,只显示一半,其原因是Ubuntu采用的字体Noto Sans CJK优先显示日文汉字,这一问题可以通过修改配置文件/etc/fonts/conf.avail/64-language-selector-prefer.conf来修复:
<?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <alias> <family>sans-serif</family> <prefer> <family>Noto Sans CJK JP</family> <family>Noto Sans CJK SC</family> <family>Noto Sans CJK TC</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>Noto Sans Mono CJK JP</family> <family>Noto Sans Mono CJK SC</family> <family>Noto Sans Mono CJK TC</family> </prefer> </alias> </fontconfig>
Noto Sans CJK JP 的优先级在 Noto Sans CJK SC 之前,重新调整一下它们的顺序即可:
... <family>Noto Sans Mono CJK SC</family> <family>Noto Sans Mono CJK TC</family> <family>Noto Sans Mono CJK JP</family> ...