SharpFont icon indicating copy to clipboard operation
SharpFont copied to clipboard

Eliminate gray border in ToGdipBitmap

Open viskin opened this issue 6 years ago • 1 comments

Current implementation of ToGdipBitmap extension method (when PixelMode.Gray) keeps gray border around letters: image

It doesn't look good when bright text is rendered on bright background. Instead, I propose to eliminate this background and use only alpha component for antialiasing. The PR produces following text:

image

Black text on white background produces same pixels when the PR applied.

viskin avatar Nov 12 '19 12:11 viskin

I agree that the rendered image looks wrong - but I wonder if this should be reported upstream? (sorry, used the wrong account).

HinTak avatar Nov 12 '19 15:11 HinTak