WPF text rendering inconsistencies

前端 未结 2 1406
感动是毒
感动是毒 2021-01-25 09:54

WPF 4.0 notoriously fixed the blurry text issue. Setting TextOptions.TextFormattingMode=\"Display\" uses pixel hints to line up characters, which works really well

相关标签:
2条回答
  • 2021-01-25 10:13

    UserInterface code in windows service is not a good idea its an unsupported scenario. The same limitation was there with GDI+ (System.Drawing.*) and same limitation applies to WPF also.

    0 讨论(0)
  • 2021-01-25 10:14

    RenderTargetBitmap always renders in software. Not sure if that is the cause...or a bug, but in any case the result is that RTB does not seem to honor the text options.

    What if you create your RTB at twice the resolution, then scale the image back down to the visuals native size. A poor man's anti-aliasing.

    0 讨论(0)
提交回复
热议问题