PolyMeilex / sctk-adwaita

Adwaita-like SCTK Frame
MIT License
26 stars 19 forks source link

Fix transparency in ab_glyph renderer #44

Closed Friz64 closed 9 months ago

Friz64 commented 10 months ago

The ab_glyph documentation states:

A coverage value of 0.0 means the pixel is totally uncoverred by the glyph. A value of 1.0 or greater means fully coverred.

On my machine, this currently results in too high of a alpha value in "self-overlapping" areas, as is especially noticeable in the 'x' and 't' in the following screenshot:

image

This PR makes it look correct:

image

Friz64 commented 9 months ago

Couldn't reproduce this on my laptop, even though it uses the same default font as my development box. I don't know why this is the case. Either way, we previously skipped over a detail in ab_glyph, and this PR corrects that.

PolyMeilex commented 9 months ago

Thanks!