Bug 18476

Summary: cairo-directfb glyps not working properly
Product: cairo Reporter: swapnil <swapni.tw>
Component: directfb backendAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: critical    
Priority: highest CC: mailinglists
Version: 1.8.6   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Screenshot with broken "Universität" text
Screenshot with broken "solarCity" text
Patch based on Cairo version 1.8.10
Patch to fix font cache corruption.

Description swapnil 2008-11-10 22:13:01 UTC
glyps are not working properly with directfb and showing broken
font for unicode (korean font)
Comment 1 swapnil 2008-11-11 02:02:45 UTC
(In reply to comment #0)
> glyps are not working properly with directfb and showing broken
> font for unicode (korean font)

#define DFB_SHOW_GLYPHS 0 is working properly,without glyps
in cairo-directfb-surafce.c
but #define DFB_SHOW_GLYPHS 1 is not working  properly i.e glyps
are not working when backend is directfb ,shows broken font (korean,japanese)
Comment 2 Erwin Rol 2009-02-19 07:35:16 UTC
I am having maybe the same problems. The two attached screenshots are from the same screen (just cropped to make the file smaller). The should say "Universität"  and "solarCity". As you can see the "t" in both is broken in exatly the same way. 

The problem goes away by setting #define DFB_SHOW_GLYPHS 0.

- Erwin
Comment 3 Erwin Rol 2009-02-19 07:36:05 UTC
Created attachment 23116 [details]
Screenshot with broken "Universität" text
Comment 4 Erwin Rol 2009-02-19 07:37:10 UTC
Created attachment 23117 [details]
Screenshot with broken "solarCity" text
Comment 5 Gilles Bertal 2010-05-19 02:37:19 UTC
Created attachment 35751 [details] [review]
Patch based on Cairo version 1.8.10

Attaching a trivial fix proposal based on Cairo version 1.8.10.
Comment 6 Peter Christoffersen 2010-07-06 00:06:20 UTC
(In reply to comment #5)
> Created an attachment (id=35751) [details]
> Patch based on Cairo version 1.8.10
> 
> Attaching a trivial fix proposal based on Cairo version 1.8.10.

The patch is not 100% correct. Cairo will keep resizing the font cache surface every time a new glyph is added to the font cache after it has filled the first line of glyphs.
I have attached a patch that fixes the prolem.
Comment 7 Peter Christoffersen 2010-07-06 00:07:36 UTC
Created attachment 36781 [details] [review]
Patch to fix font cache corruption.
Comment 8 Chris Wilson 2012-02-09 14:23:57 UTC
The wicked code is gone, long live the wicked code.

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.