Fcitx produces “wrong” chinese character

When using fcitx on my manjaro (xfce) computer to write chinese, I get for some wrong characters. For example, the fáng from chinese "room" gets displayed the japanese way instead the chinese way (see picture at the bottom). Also for example 新, I see it only correct when in Firefox (at least sometimes when typing).

Therefore, I switched yesterday from the Adobe Han Sans to NOTO-fonts cjk but it brought no change.

In Firefox, it produces interesting output: https://imgur.com/IegkVTd.png

And it can the solved by installing those packages and I don't know which brought the solution:

sudo pacman -S ttf-roboto noto-fonts noto-fonts-cjk adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts ttf-dejavu
1 Like

And if anyone has still problems, I created a local.conf in /etc/fonts/ which looks like

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
	<test name="family"><string>sans-serif</string></test>
	<edit name="family" mode="prepend" binding="strong">
		<string>Roboto</string>
		<string>Source Han Sans CN</string>
	</edit>
</match>
<match>
	<test name="family"><string>serif</string></test>
	<edit name="family" mode="prepend" binding="strong">
		<string>Noto Serif</string>
		<string>Source Han Serif CN</string>
	</edit>
</match>
<match>
	<test name="family"><string>monospace</string></test>
	<edit name="family" mode="prepend" binding="strong">
		<string>Noto Sans Mono</string>
		<string>Noto Sans Mono CJK SC</string>
	</edit>
</match>
</fontconfig>      

Forum kindly sponsored by