Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-8306

Please support scaled text in ExtTextOutW with lpDx

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.3.17
    • Win32SS

    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

          Activity

            People

              ThePhysicist Timo Kreuzer
              tarnyko tarnyko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: