WPF text rendering inconsistencies

前端 未结 2 1444
感动是毒
感动是毒 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: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.

提交回复
热议问题