Description
"ExtTextOutW()" accepts a "lpDx" options, which allows to specify a (x,y) shifting distance between glyphs (http://msdn.microsoft.com/en-us/library/windows/desktop/dd162713(v=vs.85).aspx).
A problem raises when this option is used together with the "SetWorldTransform()" function, which allows to scale a context up/down. The shifting distance should be scaled, too, but it isn't, which makes the distance between glyphs incoherent.
Here is a sample to reproduce :
Source :
http://www.tarnyko.net/repo/reactos/scaledtext-win32.c
Binary :
http://www.tarnyko.net/repo/reactos/scaledtext-win32.exe
Actual result under Win32 : http://www.tarnyko.net/repo/reactos/scaledtext-win32.png
Actual result under ReactOS (buggy !) : http://www.tarnyko.net/repo/reactos/scaledtext-reactos.png
Here is the patch which fixes this :
http://www.tarnyko.net/repo/reactos/reactos-scaledtext.patch
it's also attached to the bug report.
(What's interesting : it fixes GTK+ under ReactOS. So now you can run GTK+ programs without glitches :
http://www.tarnyko.net/repo/reactos/reactos-scaledtext-gtk.png )
Attachments
Issue Links
- relates to
-
CORE-4657 Gimp/GTK+ drawing problems
- Resolved