[Mono-bugs] [Bug 81572][Nor] Changed - MeasureString problems with multline strings

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 2 09:39:28 EDT 2007


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 sebastien at ximian.com.

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

--- shadow/81572	2007-05-08 21:59:55.000000000 -0400
+++ shadow/81572.tmp.29442	2007-08-02 09:39:28.000000000 -0400
@@ -12,13 +12,13 @@
 ReportedBy: everaldo at simios.org               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: MeasureString problems with multline strings
-OtherBugsDependingOnThis: 81550
+OtherBugsDependingOnThis: 81550[FIXED]
 
 On below code, sizef1 and sizef2 must have same (approximated) width, in
 .NET and Mono on Win32 it works fine so I think that it is a libgdiplus
 problem.
 
 using System;
@@ -52,6 +52,16 @@
 results under X11:
 size-1: {Width=119,8281, Height=75,59375}
 size-2: {Width=119,8333, Height=19,875}
 
 ------- Additional Comments From everaldo at simios.org  2007-05-08 21:59 -------
 Unit test added to revision 76976 (MeasureString_MultlineString_Width)
+
+------- Additional Comments From sebastien at ximian.com  2007-08-02 09:39 -------
+It seems we include /n inside the calculation.
+Changing text1 to:
+	string text1 = "Test 1,2,3,4,5...\nTest\nTest123\nTest 456";
+return the same values with libgdiplus too
+
+size-1: {Width=99, Height=56}
+size-2: {Width=99, Height=17}
+


More information about the mono-bugs mailing list