diff options
author | Fenveireth <fenveireth@lhfblc.fr> | 2020-08-14 17:00:11 +0000 |
---|---|---|
committer | Tudor Brindus <me@tbrindus.ca> | 2021-03-07 19:18:53 -0500 |
commit | 837605d68dc6112682bce0f133e3ba0b4dcfd440 (patch) | |
tree | 5e9702c36c57b08c3b64360cdb9fdb146dad70b5 /sway | |
parent | d358aab8d9dd6121533326423759394ca804a05a (diff) |
swaybar: use text subpixel antialias only where it would look good
Closes #5605
Text Subpixel antialiasing is :
- FreeType makes glyph bitmaps containing coverage percentage for each
subpixel, instead of pixel
- Then draw by performing the blend for each subpixel, instead of pixel (e.g.
dual-source blending in opengl)
And there's only one Alpha channel, so this extra coverage data can't
leave Cairo to reach the compositor through there.
Therefore, it can't work as intended if output text alpha != bar background
alpha. Disable it for those cases, enable it elsewhere
As for color emojis, they are RGBA bitmaps. If drawn with text alpha=1.0
and background alpha=1.0 (should be completely opaque bar), then with
'CAIRO_OPERATOR_SOURCE' then texels with alpha < 1.0 result in a blend with
whatever's behind the bar, instead of the bar background
Diffstat (limited to 'sway')
0 files changed, 0 insertions, 0 deletions