[Mono-bugs] [Bug 78777][Wis] New - MeasureCharacterRanges returns incorrect bounding rectangles when string contains an embedded \n
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jul 6 15:32:01 EDT 2006
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 toshok at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78777
--- shadow/78777 2006-07-06 15:32:01.000000000 -0400
+++ shadow/78777.tmp.26508 2006-07-06 15:32:01.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 78777
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: libgdiplus
+AssignedTo: peter at novonyx.com
+ReportedBy: toshok at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MeasureCharacterRanges returns incorrect bounding rectangles when string contains an embedded \n
+
+The attached test outputs the following on mono/linux:
+
+Mono System.Windows.Forms Assembly [$auto_build_revision$]
+Gtk colorscheme read
+region 0 bounds = {X=0,Y=0,Width=31,Height=57}
+region 1 bounds = {X=7,Y=38,Width=58,Height=19}
+
+
+and the following on MS .net:
+
+region 0 bounds = {X=4,Y=0,Width=30,Height=24}
+region 1 bounds = {X=4,Y=25,Width=62,Height=24}
+
+
+---
+
+Now, the relative values don't matter much to me, but what does matter is
+that the height of the first region in the mono case is 57 instead of being
+equal to the height of the second region (obviously taking the height of
+both lines into account somehow). And the starting X of region 1 is 7
+instead of the same as the starting X of region 0.
+
+Also, the Y of region 1 is twice the line height, which shouldn't be the
+case. It should be closer to 19.
More information about the mono-bugs
mailing list