[Mono-bugs] [Bug 60386][Wis] Changed - DrawString method problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jul 2004 07:50:41 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rkumar@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=60386

--- shadow/60386	2004-06-18 23:00:21.000000000 -0400
+++ shadow/60386.tmp.22879	2004-07-12 07:50:41.000000000 -0400
@@ -10,13 +10,12 @@
 Component: Sys.Drawing.
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: shiziye@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: DrawString method problem
 
 This program should generate a black picture with white string "hello" on 
 it. It works correctly on windows2003. But generate error with mono. 
 But if I set r = new Rectangle(20, 20, 0, 0), it work fine.
 
@@ -64,6 +63,29 @@
 libgdiplus-0.9-1.ximian.6.1.i386.rpm is available.
 
 ------- Additional Comments From peter@novonyx.com  2004-06-18 23:00 -------
 I cannot reproduce the problem. Could you please post the error you 
 are referring to in your original report? Also, are you running with 
 the DISPLAY variable set (ie in an xterm) or not?
+
+------- Additional Comments From rkumar@novell.com  2004-07-12 07:50 -------
+Could you please try the following patch in libgdiplus and let us know
+the results ?
+
+Index: src/gdip.h
+===================================================================
+RCS file: /cvs/public/libgdiplus/src/gdip.h,v
+retrieving revision 1.86
+diff -u -r1.86 gdip.h
+--- src/gdip.h  9 Jul 2004 11:43:50 -0000       1.86
++++ src/gdip.h  12 Jul 2004 10:03:31 -0000
+@@ -74,7 +74,7 @@
+ struct cairo_font {
+     int refcount;
+     cairo_matrix_t matrix;
+-    //void *glyph_cache;
++    void *glyph_cache;
+     const struct cairo_font_backend *backend;
+ };
+                                                                     
+                     
+Thanks!