]> git.sur5r.net Git - i3/i3/commit
Use OVER operator for drawing text (#2908)
authorJan Alexander Steffens <jan.steffens@gmail.com>
Sat, 9 Sep 2017 15:32:34 +0000 (17:32 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sat, 9 Sep 2017 15:32:34 +0000 (17:32 +0200)
commit16160462a30f186f5b72bb551ba2188670d4e45c
tree7c564a0ebd81acdc040c820c2a8c91d5dcd118ce
parent48fd6416c667bc7f5e7e48271d7fb3e24f8b6a7f
Use OVER operator for drawing text (#2908)

For opaque text, SOURCE is not any different from OVER. However, when
drawing color glyphs (which consist of RGBA pixels instead of strokes)
SOURCE's handling of alpha is not what we want.

I stumbled across this because cairo 1.15.8 seems to clear the surface
before drawing color emoji if the operator is SOURCE, deleting every-
thing drawn before. Arguably, the area outside the glyph bounds should
not be touched, but even if this is a cairo bug the problem of alpha
within the glyph remains.
libi3/font.c