http://bugs.winehq.org/show_bug.cgi?id=27945
Summary: GdipDrawString LineAlignement does not work . Product: Wine Version: 1.3.25 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus AssignedTo: wine-bugs@winehq.org ReportedBy: m_matsu@wind.sannet.ne.jp
Created an attachment (id=35747) --> (http://bugs.winehq.org/attachment.cgi?id=35747) output image (Windows and Wine 1.3.25)
When GdipDrawString is called after GdipSetStringFormatLineAlign is called, the defective operation is caused.
sample (C#)
private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = this.CreateGraphics(); Font font = new Font("Arial", 20); Brush brush = new SolidBrush(Color.Black); RectangleF rect = new RectangleF(0, 0, 200, 50); StringFormat format = new StringFormat(); Pen pen = new Pen(Color.Black);
format.LineAlignment = StringAlignment.Center; // call GdipSetStringFormatLineAlign g.DrawString("ABCDE", font, brush, rect, format); g.DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height); }
http://bugs.winehq.org/show_bug.cgi?id=27945
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=27945
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2011-10-06 10:27:00 CDT --- This is probably a duplicate of bug 27811, which has been fixed. Please retest.
http://bugs.winehq.org/show_bug.cgi?id=27945
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|download |
http://bugs.winehq.org/show_bug.cgi?id=27945
--- Comment #2 from Austin English austinenglish@gmail.com 2013-11-13 16:51:34 CST --- This is your friendly reminder that there has been no bug activity for 2 years. Is this still an issue in current (1.7.6 or newer) wine? If so, please attach the terminal output in 1.7.6 (see http://wiki.winehq.org/FAQ#get_log).
http://bugs.winehq.org/show_bug.cgi?id=27945
--- Comment #3 from m.matsubara m_matsu@wind.sannet.ne.jp 2013-11-14 17:42:10 CST --- Thank you.
I have not tried in Version 1.7.1, but it has confirmed that it is already fixed in Version 1.6.
https://bugs.winehq.org/show_bug.cgi?id=27945
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com --- (In reply to m.matsubara from comment #3)
Thank you.
I have not tried in Version 1.7.1, but it has confirmed that it is already fixed in Version 1.6.
Fixed.
https://bugs.winehq.org/show_bug.cgi?id=27945
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.32.