April 17, 2026
6:31 p.m.
Esme Povirk (@madewokherd) commented about dlls/gdiplus/graphics.c:
+ bounds->X += info->rect->Width - bounds->Width; + break; + } + + switch (info->format->line_align) + { + case StringAlignmentNear: + default: + break; + case StringAlignmentCenter: + bounds->Y += (info->rect->Height - bounds->Height) / 2; + break; + case StringAlignmentFar: + bounds->Y += info->rect->Height - bounds->Height; break; } I don't think it's possible to handle this correctly in the callback. We need to know the full height before we know how to offset the results.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9775#note_136812