Bug 121017 - CJK font display on KDE
Summary: CJK font display on KDE
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qt
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-04-16 08:53 UTC by Lawrence Lim
Modified: 2014-03-26 00:50 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-04-30 17:10:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
KDE screen shot in ja_JP.UTF-8 locale (210.16 KB, image/png)
2004-04-16 08:55 UTC, Lawrence Lim
no flags Details
KDE screenshot with ko_KR.UTF8 locale (217.08 KB, image/png)
2004-04-16 08:56 UTC, Lawrence Lim
no flags Details
KDE screenshot in zh_CN.UTF-8 locale (247.51 KB, image/png)
2004-04-16 08:57 UTC, Lawrence Lim
no flags Details
KDE screenshot in zh_TW.UTF-8 locale (253.21 KB, image/png)
2004-04-16 08:57 UTC, Lawrence Lim
no flags Details
interim fix for qfontengine (532 bytes, patch)
2004-04-21 01:17 UTC, Leon Ho
no flags Details | Diff
Aliases Unknowscript fix (566 bytes, patch)
2004-04-21 07:44 UTC, Leon Ho
no flags Details | Diff

Description Lawrence Lim 2004-04-16 08:53:48 UTC
Description of problem:
CJK fonts are not able to be displayed on KDE.

Version-Release number of selected component (if applicable):
FC2-re0415.0
qt-3.3.1-0.8
kdelibs-3.2.1-1.4

How reproducible:
Always

Steps to Reproduce:
1. Log in screen (gdm) select KDE as session and any CJK as language
2. Enter username/password
3.
  
Actual results:
Unable to display CJK fonts. (see attached screen-shots)

Expected results:
CJK fonts properly displayed.

Additional info:

Comment 1 Lawrence Lim 2004-04-16 08:55:15 UTC
Created attachment 99466 [details]
KDE screen shot in ja_JP.UTF-8 locale

Comment 2 Lawrence Lim 2004-04-16 08:56:16 UTC
Created attachment 99467 [details]
KDE screenshot with ko_KR.UTF8 locale

Comment 3 Lawrence Lim 2004-04-16 08:57:13 UTC
Created attachment 99468 [details]
KDE screenshot in zh_CN.UTF-8 locale

Comment 4 Lawrence Lim 2004-04-16 08:57:58 UTC
Created attachment 99469 [details]
KDE screenshot in zh_TW.UTF-8 locale

Comment 5 Than Ngo 2004-04-19 17:56:45 UTC
it looks like something is broken in fontconfig. The issue does appear
in GNOME too. with the same version of Qt/KDE, it works fine in FC1!







Comment 6 Jens Petersen 2004-04-20 02:45:05 UTC
Still seems to occur with fontconfig-2.2.1-10 afaict.

Comment 7 Leon Ho 2004-04-20 07:11:30 UTC
Thanks Than for the info. However I have downgraded to RHEL3
fontconfig + freetype but seems it does not fix the problem, but if i
downgrade to qt-3.3.1-0.5 the display is okay again.

It may be possible that one of the patch in between qt builds that
causes the problem. I am trying to debugg it, hopefully we will get
some answers soon. Then we know which package should be causing the
problem.

Comment 8 Leon Ho 2004-04-21 01:15:49 UTC
Found out it is one of the new code that changes QFontEngine that is
having problem. Kochi currently is setting as a symbol font (need to
find out why) and new code use this attribute to determine to use
which charmap (UNICODE or
FT_ENCODING_ADOBE_CUSTOM/FT_ENCODING_APPLE_ROMAN), so Kochi is mapped
with APPLE_ROMAN and hence cannot display.

I am submitting a patch to fix this problem. However it will unable to
use the symbols from symbol font (ie. Dingbats).

I will try to find a better way to do that. In the interim please
consider this patch. Assigning back to qt.

Comment 9 Leon Ho 2004-04-21 01:17:35 UTC
Created attachment 99580 [details]
interim fix for qfontengine

Comment 10 Leon Ho 2004-04-21 07:43:33 UTC
Currently by this coding the fontconfig font aliases are setting all
scripts as support. so QFont::UnknownScript is also set in their scripts. 
Should they get support flag for QFont::UnknownScript? 

My take is it is better by not setting UnknownScript for alias fonts. 

Attached is the patch for it. It should fix CJK font display problem
on current KDE.

Comment 11 Leon Ho 2004-04-21 07:44:28 UTC
Created attachment 99587 [details]
Aliases Unknowscript fix

Comment 12 Than Ngo 2004-04-21 10:17:41 UTC
>interim fix for qfontengine:
Leon, i have taken a look in src/kernel/qfontengine_x11.cpp, but did
not find the location where it could match your patch!




Comment 13 Than Ngo 2004-04-21 10:52:20 UTC
>Aliases Unknowscript fix
Leon, the patch looks fine for me. I will add it in next qt rebuild.

thanks for the patch file ;-)

Comment 14 Leon Ho 2004-04-22 00:04:30 UTC
You can search for ~/\/\/ symbol font/ right? It is in the new
fontdatabase patch tho. BTW comment #11 replace commment #9's patch so
don't apply "interim fix for qfontengine". 

Let me know when you have the build. Thanks

Comment 15 Than Ngo 2004-04-22 10:05:20 UTC
i'm stupid! of course, it's in fontdatabase.patch.

i'm now building qt-3.3.1-1 in dist-fc2-scratch that includes the
patches. It would be nice if you cound test it in FC2. Thanks


Comment 16 Leon Ho 2004-04-22 14:12:01 UTC
I am in transit to Raleigh now, but as far as I tested remotely it
looks good now! Thanks!

Comment 17 Than Ngo 2004-04-30 17:10:18 UTC
it's fixed in qt-3.3.1-1 or newer. Thanks for your report


Note You need to log in before you can comment on or make changes to this bug.