On Sun Apr 26 13:27:13 2026 +0000, Bartosz Kosiorek wrote:
If you notice that some use case is not covered by test cases, please create Merge Request with corresponding test case into: https://gitlab.winehq.org/wine/wine/-/blob/master/dlls/gdiplus/tests/graphic... With such approach it will secure Wine from regression. FWIW, I don't think trying to reproduce native's precise behavior, down to exact measurements and particularly adjustments in case of limited space, is a good idea for text rendering specifically.
We know from [an MS-published article](https://web.archive.org/web/20080119000747/http://support.microsoft.com/kb/3...) that native treats text as linearly scalable. It accounts for deviations in scaled glyph size by either adding/removing spacing (between words and even between individual characters), or rendering the whole thing in vectors. Both of these approaches would add a lot of complexity, with the end result being ugly text. To my knowledge, real applications do not depend on linear text scaling, but we cannot match native's precise measurements without providing it. Therefore, I think we should ideally have this in mind and not depend on it when writing tests. I'm also willing to accept test regressions that are made necessary by this approach. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10736#note_137786