Bug 70396 - fontconfig returns wrong font for glyphs if fallback from pfa font
Summary: fontconfig returns wrong font for glyphs if fallback from pfa font
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: qt
Version: limbo
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: wdovlrrw
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 67218
TreeView+ depends on / blocked
 
Reported: 2002-08-01 01:01 UTC by Leon Ho
Modified: 2008-05-01 15:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-28 19:46:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Leon Ho 2002-08-01 01:01:11 UTC
Description of Problem:     
It returns wrong font for glyphs if fallback from pfa fonts.     
     
Version-Release number of selected component (if applicable):     
     
     
How Reproducible:     
everytime    
     
Steps to Reproduce:     
1. rm -rf .kde; run KDE with zh_CN.GB18030    
2. FC_DEBUG=1 kedit    
3. open any simplified chinese file 
4. watch the debug accept courier for displaying glyphs    
     
Actual Results:     
    
Match Pattern 19 of 32    
        antialias: FcTrue    
        autohint: FcFalse    
        charset: set    
        dpi: 80.9427    
        family: "courier" "Courier New" "ZYSong18030" "AR PL SungtiL GB" "Andale Mono"    
"Courier New" "Luxi Mono" "Nimbus Mono L" "monospace" "AR PL Mingti2L Big5" "Baekmuk    
Dotum" "Kochi Gothic" "monospace"    
        globaladvance: FcTrue    
        hinting: FcTrue    
        hintstyle: 1    
        language: "zh-cn"    
        maxglyphmemory: 1048576    
        minspace: FcFalse    
        pixelsize: 12    
        render: FcTrue    
        rgba: 0    
        scale: 1    
        slant: 0    
        spacing: 100    
        verticallayout: FcFalse    
        weight: 100    
    
Best score 0 0 0 0 0 0 0 0 0 0 0 0Pattern 10 of 16    
        charset: set    
        family: "Courier"    
        file: "/usr/X11R6/lib/X11/fonts/Type1/cour.pfa"    
        index: 0    
        outline: FcTrue    
        scalable: FcTrue    
        slant: 0    
        spacing: 100    
        style: "Regular"    
        weight: 100    
    
     
     
Expected Results:     
It should fall back to ZYSong18030 for simplifiedchinese glyphs     
     
Additional Information:

Comment 1 Owen Taylor 2002-08-01 14:25:24 UTC
Unfortunately, qt doesn't handle fallbacks using the fontconfig 
machinery correctly; this would require some more extensive 
changes to the qt font code than is done in the current 
Xft2 for qt diff.

Comment 2 Owen Taylor 2002-08-08 21:42:21 UTC
(missed reassignment earlier)

Comment 3 Leon Ho 2002-08-13 08:24:04 UTC
Yes confirmed it is qt's handling problem. It exists no matter which languages
so it is good idea to modify qt font classes to have this functionality.

Comment 4 Leon Ho 2002-08-14 12:40:35 UTC
Patch attached over Bug 71482 should fix this problem as well. Please verify.

Comment 5 Ngo Than 2002-08-24 09:17:04 UTC
it's fixed in qt-3.0.5-15 or newer.

Comment 6 Jay Turner 2002-08-28 19:46:37 UTC
Would someone mind confirming this is indeed fixed?

Comment 7 Leon Ho 2002-08-28 22:51:10 UTC
Confirmed the patch is in and fixed.


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