terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Implement a tile based deferred text renderer for perfect glyph overlaps

Open lhecker opened this issue 8 months ago • 0 comments

Before:

before

After:

after

To people who work on video games this is probably a piece of cake. To anyone else, I hope this suffices:

explanation

The key here is that we accumulate the ClearType weights separately from the foreground colors via max() and only then blend it with the foreground color into the resulting image. The max() ensures that no emboldening occurs on overlaps, unlike with regular alpha blending (two semi-transparent colors result in one slightly opaquer).

lhecker avatar Feb 08 '25 01:02 lhecker