Bug 121017

Summary: CJK font display on KDE
Product: [Fedora] Fedora Reporter: Lawrence Lim <llim>
Component: qtAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: eng-i18n-bugs, otaylor, petersen, than, tools-bugs, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-04-30 17:10:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114961    
Attachments:
Description Flags
KDE screen shot in ja_JP.UTF-8 locale
none
KDE screenshot with ko_KR.UTF8 locale
none
KDE screenshot in zh_CN.UTF-8 locale
none
KDE screenshot in zh_TW.UTF-8 locale
none
interim fix for qfontengine
none
Aliases Unknowscript fix none

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