https://bugs.winehq.org/show_bug.cgi?id=50494
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 69149 --> https://bugs.winehq.org/attachment.cgi?id=69149 patch
I don't think layout rectangle should be adjusted before passing it to dwrite. On Windows 10 another important difference besides text origin for inverted rectangle is that everything is wrapped to layout rectangle, that might be a dwrite issue, wrapping mode has to be tested separately. Attached patch fixes both problems for me.
Does the demo work differently on Windows 7 vs Windows 10?