[Mono-bugs] [Bug 76111][Maj] New - DrawString does not honor
StringFormatFlags.NoWrap
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 15 05:51:36 EDT 2005
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 jordi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76111
--- shadow/76111 2005-09-15 05:51:36.000000000 -0400
+++ shadow/76111.tmp.6258 2005-09-15 05:51:36.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 76111
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details: Linux
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: libgdiplus
+AssignedTo: peter at novonyx.com
+ReportedBy: jordi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DrawString does not honor StringFormatFlags.NoWrap
+
+This sample allows to reproduce the problem.
+
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System;
+
+namespace MyFormProject
+{
+ class proves
+ {
+
+ public static void Main (string[] args)
+ {
+ Bitmap bmp = new Bitmap (200, 200);
+ Graphics dc = Graphics.FromImage (bmp);
+ StringFormat string_format = new StringFormat ();
+ Rectangle bounds = new Rectangle (10, 10, 150, 100);
+ Font font = new Font ("Arial", 12);
+
+ string_format.FormatFlags |= StringFormatFlags.NoWrap;
+ dc.DrawString ("[NoWrap] This is a sample text",
+ font, Brushes.Red, bounds, string_format);
+
+ dc.DrawRectangle (Pens.Blue, bounds);
+
+ bmp.Save ("output.bmp");
+
+ }
+ }
+
+}
More information about the mono-bugs
mailing list