I'm using xorg 6.7.0, w/ LANG=en_US.utf8. I have made changes to fontconfig to set font preferences for serif, sans-serif, and monospace to use AR PL KaitiM Big5 before any other CJK fonts. In gedit, and various other gnome applications, using monospace,serif, and sans-serif fonts correctly use kaiti font when I input chinese characters. However, in gnome-terminal (and in mozilla w/ unicode encoding), chinese inputs are rendered with various different fonts. I'm not quite sure the exact mechanisms of these, and cannot pinpoint the problem. Could somebody help? I will attach a screenshot. It should be noted that the kaiti font is correctly chosen when I launch gnome-terminal w/ LANG=zh_TW.big5, or when I set character encoding to Big5 in mozilla/firefox.
Created attachment 39867 [details] a screnshot of system font preference, gedit, and gnome-terminal Note that chinese fonts in gedit (using monospace 8) is consistent kaiti font. In gnome-terminal (and equally in mozilla/firefox) chinese fonts are inconsistently picked among various CJK fonts.
that is because arphic is missing certain characters, so therefore, fontconfig will start choosing other fonts for those missing characters, therefore it looks weird. a temporary solution is to start using ming-hkscs and place it above the arphic font in your fonts.conf. a more permanent solution would be to put the ming font above the arphic font in gentoo's fonts.conf
How, then, is gedit and the rest of gnome applications able to pick up the correct font for "你" (ni3, you) from arphic fonts? Also, I have installed Dr. Wang fonts and still have the same problems. Note that monafont and aquafont were not in fontconfig at all, but the fonts are still being used. The more precise question, I guess, is that how come gedit picked up arphic font using "monospace" alias, but gnome-terminal didn't when I also told it to use "monospace"?
good point. i hadn't noticed that in your screenshot before you mentioned it. i can't really explain that behaviour.
i'm certain that this is not something gentoo should be responsible for. where what this kind of questions be posted to? gnome people or font config people? ray,
i still have found any solutions. anyone?
i switched to fireflysung fonts bug#104227, there are no more weird characters. it must be the insufficient characters in the ttfs i used.