[Feature] Non-aliased rendering mode
cpkio opened this issue · comments
I've tried using pixel-perfect font and noticed it still has some blurring on colors. Can we have non-aliased font mode by replacing D2D1_ANTIALIAS_MODE_ALIASED
in glyph renderer to something else?
I am not sure what the request is, text is always anti-aliased, do you want a mode that sets D2D1_TEXT_ANTIALIAS_MODE_ALIASED?
On the opposite, I'd like to have non-aliased font rendering.
Oh okay, I am unsure what the effects of setting the D2D1_ANTIALIAS_MODE to be anti-aliased when doing the glyphrun but I believe its not actually drawing the glyphs its only the intersection of the rect and the glyphs that is aliased to avoid blurry edges of the rect I would assume (see https://learn.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-pushaxisalignedclip(constd2d1_rect_f__d2d1_antialias_mode)). Is it possible for you to test if it works better with a different flag?
@RMichelsen Yeah, sure.