aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Fenveireth <fenveireth@lhfblc.fr>2020-08-14 17:00:11 +0000
committerLibravatar Tudor Brindus <me@tbrindus.ca>2021-03-07 19:18:53 -0500
commit837605d68dc6112682bce0f133e3ba0b4dcfd440 (patch)
tree5e9702c36c57b08c3b64360cdb9fdb146dad70b5 /sway/tree/container.c
parentcontainer: Limit tiled focus to container geometry (diff)
downloadsway-837605d68dc6112682bce0f133e3ba0b4dcfd440.tar.gz
sway-837605d68dc6112682bce0f133e3ba0b4dcfd440.tar.zst
sway-837605d68dc6112682bce0f133e3ba0b4dcfd440.zip
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/tree/container.c')
0 files changed, 0 insertions, 0 deletions