swayfx/swaybar
Fenveireth 837605d68d 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
2021-03-07 19:18:53 -05:00
..
tray tray: track SNI callbacks 2020-03-30 17:31:00 +02:00
bar.c Make Wayland request listeners static const when possible 2021-02-04 09:49:06 +01:00
config.c Add support for workspace_min_width bar option. 2020-10-11 19:12:42 +02:00
i3bar.c swaybar: fix i3bar relative coordinates when scaling is used 2020-02-10 18:58:09 +01:00
input.c Make Wayland request listeners static const when possible 2021-02-04 09:49:06 +01:00
ipc.c Add support for workspace_min_width bar option. 2020-10-11 19:12:42 +02:00
main.c Make command line option lists const 2021-02-04 09:49:06 +01:00
meson.build build: introduce sd-bus-provider option 2020-12-09 17:39:20 -05:00
render.c swaybar: use text subpixel antialias only where it would look good 2021-03-07 19:18:53 -05:00
status_line.c swaybar: allow status line cleanup to proceed when hidden 2020-07-22 09:40:37 +02:00
swaybar-protocol.7.scd man: update maintainer 2021-01-08 09:33:51 +01:00