Bug 121017
Summary: | CJK font display on KDE | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lawrence Lim <llim> | ||||||||||||||
Component: | qt | Assignee: | Than Ngo <than> | ||||||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||||
Priority: | medium | ||||||||||||||||
Version: | rawhide | CC: | 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
Lawrence Lim
2004-04-16 08:53:48 UTC
Created attachment 99466 [details]
KDE screen shot in ja_JP.UTF-8 locale
Created attachment 99467 [details]
KDE screenshot with ko_KR.UTF8 locale
Created attachment 99468 [details]
KDE screenshot in zh_CN.UTF-8 locale
Created attachment 99469 [details]
KDE screenshot in zh_TW.UTF-8 locale
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! Still seems to occur with fontconfig-2.2.1-10 afaict. 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. 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. Created attachment 99580 [details]
interim fix for qfontengine
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. Created attachment 99587 [details]
Aliases Unknowscript fix
>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!
>Aliases Unknowscript fix
Leon, the patch looks fine for me. I will add it in next qt rebuild.
thanks for the patch file ;-)
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 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 I am in transit to Raleigh now, but as far as I tested remotely it looks good now! Thanks! it's fixed in qt-3.3.1-1 or newer. Thanks for your report |