Bug 3447

Summary: fc-cache breaks my qt program
Product: fontconfig Reporter: Daniel Stone <daniel>
Component: fc-cacheAssignee: Keith Packard <keithp>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: high    
Version: 2.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 8100    
Attachments: Screenshot which displays normally.
Screenshot which displays wrong font.
Generated by version 2.3.2
Generated by version 2.2.3

Description FreeDesktop Bugzilla Database Corruption Fix User 2005-06-01 14:58:43 UTC
I just update fontconfig from 2.2.3 to 2.3.2. I am supprised that all my QT
based programs display bold font charactors for Chinese. But actually they
should just display regular font as before. In fact, only SimSun font in my
system is broken. The other fonts seem fine. And the GTK programs also work well.

So I try to find out what is wrong with my system. Finally, I find that fc-cache
must do something wrong with my Chinese fonts. 

I have a SimSun font family and there are four font files for different styles.
Nomally, when I select SimSun, SimSun.ttf should be chosen. But now, when I
select SimSun in QT program, SimSun-Bold.ttf is chosen. 

I do not know what happens. I use the fc-cache from version 2.2.3 to regenerate
the fonts.cache-1 file. Then everything goes ok again. Therefore, I guess the
problem is that fc-cache generates some bad cache file.

I attach the fonts.cache-1 (2.3.2) and fonts.cache-1.bak (2.2.3) as well as two
screenshots which show what happens.
Comment 1 FreeDesktop Bugzilla Database Corruption Fix User 2005-06-01 15:00:47 UTC
Created attachment 2807 [details]
Screenshot which displays normally.
Comment 2 FreeDesktop Bugzilla Database Corruption Fix User 2005-06-01 15:01:42 UTC
Created attachment 2808 [details]
Screenshot which displays wrong font.
Comment 3 FreeDesktop Bugzilla Database Corruption Fix User 2005-06-01 15:02:47 UTC
Created attachment 2809 [details]
Generated by version 2.3.2
Comment 4 FreeDesktop Bugzilla Database Corruption Fix User 2005-06-01 15:03:32 UTC
Created attachment 2810 [details]
Generated by version 2.2.3
Comment 5 Keith Packard 2006-09-01 10:59:05 UTC
Can you describe the actual problem here? I see that the 'broken' one appears to
be using a bold version of the font, is that the issue?
Comment 6 Keith Packard 2006-09-01 20:30:31 UTC
No reporter in this bug; marking as invalid

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.