http://bugzilla.novell.com/show_bug.cgi?id=606204
http://bugzilla.novell.com/show_bug.cgi?id=606204#c0 Summary: Graphics.DrawString alignment inconsistent with .NET (and Expectation) Classification: Mono Product: Mono: Class Libraries Version: 2.4.x Platform: x86 OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Sys.Drawing. AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=362469) --> (http://bugzilla.novell.com/attachment.cgi?id=362469) C# Source code as mentioned User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4 When using Stringformat.Alignment and Stringformat.LineAlignment to draw a string to a bitmap, the position of the drawed text ist not as expected and as in .NET. Additionally, positioning differs heavily between horizontal and vertical drawing. Reproducible: Always Steps to Reproduce: 1. Install same TTF font on Linux/Mono and Windows/.NET (I chose "Linux Libertine", but you can use any font you like) 2. Use the attached MonoDevelop Project and C# code to create FontBug.exe - this is a small program, that draws text to a bitmap and then saves the bitmap as PNG 3. Run FontBug.exe on Linux/Mono and Windows/.NET, compare output Output from Ubuntu 10.4/Mono 2.4.4 and Windows XP .NET 2.0 are attached Actual Results: Positioning of text differs between the two Expected Results: Bitmaps are identical I suspect, that this poses a severe restriction on the usability of Mono for Reports -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
