Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64549 - incorrect chinese fonts when using unicode
Summary: incorrect chinese fonts when using unicode
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 10:44 UTC by Ray Tsang
Modified: 2005-08-30 00:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a screnshot of system font preference, gedit, and gnome-terminal (chinese-screenshot.jpg,163.23 KB, image/jpeg)
2004-09-18 10:47 UTC, Ray Tsang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ray Tsang 2004-09-18 10:44:47 UTC
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.
Comment 1 Ray Tsang 2004-09-18 10:47:16 UTC
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.
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2004-09-19 04:29:29 UTC
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
Comment 3 Ray Tsang 2004-09-19 06:25:34 UTC
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"?
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2004-09-21 16:54:19 UTC
good point. i hadn't noticed that in your screenshot before you mentioned it. i can't really explain that behaviour.
Comment 5 Ray Tsang 2004-09-22 04:22:46 UTC
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,
Comment 6 Ray Tsang 2004-10-18 19:33:18 UTC
i still have found any solutions.  anyone?
Comment 7 Ray Tsang 2005-08-30 00:04:52 UTC
i switched to fireflysung fonts bug#104227, there are no more weird characters.
 it must be the insufficient characters in the ttfs i used.