[Bug 59712] New: `TextRenderer.MeasureText()` ignores trailing spaces
http://bugs.winehq.org/show_bug.cgi?id=59712 Bug ID: 59712 Summary: `TextRenderer.MeasureText()` ignores trailing spaces Product: Framework Mono Version: 6.12.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: System.Windows.Forms Assignee: wine-bugs@list.winehq.org Reporter: matthias.klaey@gmx.ch CC: madewokherd@gmail.com Distribution: --- Created attachment 80848 --> http://bugs.winehq.org/attachment.cgi?id=80848 [Windows 11 = equal width measured], [Mono Debian WSL = trailing spaces ignored] As visible in the attached screenshots, `TextRenderer.MeasureText()` ignores trailing spaces. Here's the repro code snipped: ``` var text = listBox_OwnerDraw.Items[e.Index].ToString(); TextRenderer.DrawText(e.Graphics, text, e.Font, e.Bounds, e.ForeColor, e.BackColor, TextFormat); var width = TextRenderer.MeasureText(e.Graphics, text, e.Font, e.Bounds.Size, TextFormat).Width; listBox_Width.Items[e.Index] = $"Width = {width}"; ``` Origin: https://sourceforge.net/p/y-a-terminal/code/HEAD/tree/trunk/YAT/YATLib/YAT.S... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59712 --- Comment #1 from matthias.klaey@gmx.ch <matthias.klaey@gmx.ch> --- Origin URL tied to specific revision: https://sourceforge.net/p/y-a-terminal/code/6846/tree//trunk/YAT/YATLib/YAT.... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla