Stellen Sie eine FrageStellen Sie eine Frage
 

BeantwortetWPF Text blurry

  • Dienstag, 29. August 2006 20:59Daikoku TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Hi,

    I'm wondering if this is a known problem:
    I have a multi monitor setup and whenever I move a WPF window from one screen to the other the text becomes totally blurred. Also, moving the window across to the other screens is very slow. Sometimes, this blurry text effect also appears on the main monitor, for example when I expand a combo box, etc.
    Anybody knows what's going on there?

    Thanks,

    Tom

Antworten

  • Montag, 18. September 2006 21:38Seema Ramchandani MSFT TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet

    RE: performance of multi-adapter, multi-monitor system
    Tom and I followed up offline, I have been unable to repro the performance issue with a similar multi-monitor-multi-adapter-multi-IHV configuration. If other folks watching this thread have seen similar issues, please mail me.

    RE: WPF Text blurry
    Followup: In the linked jpg, all of WPF is shifted an odd amount (by 1-2 pixels). As WPF text is rendered via an algorithm handling subpixel placement, a slight shift in rendering causes the text to be very blurry. The issue does not repro when WPF hardware acceleration is disabled; without being able to reproduce the issue on my own machines, I am guessing that the shifting might be due to the interactions between the two video drivers.

    -SeemaR@Microsoft
    http://blogs.msdn.com/seema

Alle Antworten

  • Mittwoch, 30. August 2006 06:28JosephCooneyMVPTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Try setting SnapsToDevicePixels="True" on the UIElement that looks blurry.

    This has been discussed before here http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=168948&SiteID=1 and here http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=391349&SiteID=1 Some people on some hardware seem to find WPF (and cleartype in general) to be too blurry for them.
  • Mittwoch, 30. August 2006 07:52Daikoku TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    This happens with every WPF application, so if this is not fixed by default this is a huge problem. Also, as soon as I move the application to another screen it seems as the hardware drawing support is missing and everything is way laggy?
  • Mittwoch, 30. August 2006 07:57Daikoku TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Here is a screenshot that shows a WPF control halfway on anoter screen: http://www.kingvest.de/blur.png
  • Mittwoch, 30. August 2006 20:21Daikoku TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    anyone? I think this is a real big problem
  • Mittwoch, 30. August 2006 20:47Seema Ramchandani MSFT TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    Hi Tom,

    This problem has not reported before (the aforementioned SnapsToDevicePixels property does not affect Text).

    I wonder if your second monitor is actually set to its optimal resolution setting. Does non-Avalon text show up clearly on both monitors?

    -Seema

  • Mittwoch, 30. August 2006 22:54Daikoku TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    yes, everything but WPF apps is perfectly fine
  • Mittwoch, 30. August 2006 23:00Daikoku TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    here some proof: http://www.kingvest.de/blur2.png
  • Montag, 18. September 2006 21:38Seema Ramchandani MSFT TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     Beantwortet

    RE: performance of multi-adapter, multi-monitor system
    Tom and I followed up offline, I have been unable to repro the performance issue with a similar multi-monitor-multi-adapter-multi-IHV configuration. If other folks watching this thread have seen similar issues, please mail me.

    RE: WPF Text blurry
    Followup: In the linked jpg, all of WPF is shifted an odd amount (by 1-2 pixels). As WPF text is rendered via an algorithm handling subpixel placement, a slight shift in rendering causes the text to be very blurry. The issue does not repro when WPF hardware acceleration is disabled; without being able to reproduce the issue on my own machines, I am guessing that the shifting might be due to the interactions between the two video drivers.

    -SeemaR@Microsoft
    http://blogs.msdn.com/seema

  • Montag, 13. November 2006 01:52Rei Miyasaka TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     

    Hi,

    I was expecting this to be fixed by release, but it hasn't been.

    I'm running the first release of .NET 3.0 on a Radeon 9600 with multiple monitors on Windows XP SP2.

    When I move the window from one monitor to the other, the text blurs, in the exact same way that the text blurs when it is being animated. However, when the text is animated, on the second monitor, rather than blurring more, it becomes clear -- extremely bizarre. I thought the blurring during animation was intentional, but evidently it's not. SnapsToDevicePixels has no effect.

    Furthermore, I have the same problem with the whole window contents being skewed when the window is moved. On the other hand, I can minimize it and restore it on the second monitor, which fixes the skewing, but doesn't fix the blurry text. It's most likely a separate bug altogether.

     

    This is a crucial problem affecting not just aesthetics but also legibility and usability; it must be fixed ASAP. Please contact me if you need more repro information.

     

    Thanks,

    Rei