aboutsummaryrefslogtreecommitdiff
path: root/foot-features.h (follow)
Commit message (Collapse)AuthorAgeLines
* main/client: simplify code for printing --version stringCraig Barnes2025-03-14-33/+7
|
* meson: require wayland-protocols >= 1.41Daniel Eklöf2025-03-13-27/+0
|
* render: gamma-correct blendingDaniel Eklöf2025-03-05-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements gamma-correct blending, which mainly affects font rendering. The implementation requires compile-time availability of the new color-management protocol (available in wayland-protocols >= 1.41), and run-time support for the same in the compositor (specifically, the EXT_LINEAR TF function and sRGB primaries). How it works: all colors are decoded from sRGB to linear (using a lookup table, generated in the exact same way pixman generates it's internal conversion tables) before being used by pixman. The resulting image buffer is thus in decoded/linear format. We use the color-management protocol to inform the compositor of this, by tagging the wayland surfaces with the 'ext_linear' image attribute. Sixes: all colors are sRGB internally, and decoded to linear before being used in any sixels. Thus, the image buffers will contain linear colors. This is important, since otherwise there would be a decode/encode penalty every time a sixel is blended to the grid. Emojis: we require fcft >= 3.2, which adds support for sRGB decoding color glyphs. Meaning, the emoji pixman surfaces can be blended directly to the grid, just like sixels. Gamma-correct blending is enabled by default *when the compositor supports it*. There's a new option to explicitly enable/disable it: gamma-correct-blending=no|yes. If set to 'yes', and the compositor does not implement the required color-management features, warning logs are emitted. There's a loss of precision when storing linear pixels in 8-bit channels. For this reason, this patch also adds supports for 10-bit surfaces. For now, this is disabled by default since such surfaces only have 2 bits for alpha. It can be enabled with tweak.surface-bit-depth=10-bit. Perhaps, in the future, we can enable it by default if: * gamma-correct blending is enabled * the user has not enabled a transparent background
* features: add +/-system-bell to version outputDaniel Eklöf2025-01-17-0/+9
|
* main: include toplevel-icon support in --version outputDaniel Eklöf2024-09-13-0/+9
|
* wayland: cursor-shape-v1 is now always availableDaniel Eklöf2023-08-07-9/+0
| | | | Since we're requiring wayland-protocols >= 1.32
* wayland: fractional-scale-v1 is now always availableDaniel Eklöf2023-08-07-9/+0
| | | | Since we're requiring wayland-protocols >= 1.32
* main/client: add a version feature flag for cursor-shapeDaniel Eklöf2023-07-03-0/+9
|
* feature: add a feature flag (for --version) for fractional scalingDaniel Eklöf2023-06-29-0/+9
|
* foot/client: version info: add +/- assertionsDaniel Eklöf2021-10-23-0/+9
|
* features: add feature_graphemes()Daniel Eklöf2021-06-24-0/+9
| | | | | Returns true if we’re compiled with grapheme shaping support, false otherwise.
* features: --version now logs +/-pgoDaniel Eklöf2021-03-26-0/+9
| | | | That is, whether the binary was compiled with PGO or not.
* features: include compile-time enable/disable state of features when printing versionDaniel Eklöf2020-12-07-0/+12