http://bugs.winehq.org/show_bug.cgi?id=59569 Bug ID: 59569 Summary: `AutoSize` not correctly calculated for framed labels 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 80625 --> http://bugs.winehq.org/attachment.cgi?id=80625 Screenshots [Windows 11 Textscale 100%], [Windows 11 Textscale 125%], [Mono Debian WSL], [Mono Ubuntu] With certain combinations of font sizes, `Label` as well as `ToolStripStatusLabel` do not correctly calculate `AutoSize` if label is framed with `BorderStyle.Fixed*`, `Border3DStyle.Raised*` or `Border3DStyle.Sunken*`. Issue can be worked around by manually increasing the dimensions by 2 pixels, i.e. either `AutoSize` does not correctly take framing into account. Or even more likely, `AutoSize` has an issue with measuring and rounding font size, e.g. `Math.Round()` rather than `Math.Ceil()`. The attached .zip contains screenshots demonstrating the issue: - Windows 11 .NET Framework 4.8 => all fine. - Debian 12 with Mono 6.12.0 => issues with Deja Vu Sans Mono 9. - Ubuntu 24 with Mono 6.12.0 => issues with Noto Sans 11.25. -- 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.