From 2a676dfad837d1784ed0911d314bc263804ef4ef Mon Sep 17 00:00:00 2001 From: Chris Copeland Date: Fri, 15 Jul 2022 14:56:26 -0700 Subject: Fix thin strokes on macOS Remove the `font.use_thin_strokes` config, which only did anything on macOS and only prior to Big Sur. Instead, we will enable or disable "font smoothing" on macOS based on the `AppleFontSmoothing` user default. These changes let users get the "thin strokes" behavior by setting `AppleFontSmoothing` to 0 with: ```sh $ defaults write -g AppleFontSmoothing -int 0 ``` (Or replace `-g` with `org.alacritty` to apply this setting only to Alacritty.app, rather than the whole system.) Add a `removed` config attribute to show helpful warnings to users who are using config options that don't do anything anymore, and apply this attribute to `font.use_thin_strokes`. Bump `crossfont` to 0.5.0 to pick up the new font smoothing behavior. This release also includes a fix for a crash when trying to load a disabled font. Fixes #4616. Fixes #6108. --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index b6b31e05..4b585df9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,10 +34,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `SpawnNewInstance` no longer inherits initial `--command` - Blinking cursor will timeout after `5` seconds by default - Deprecated `colors.search.bar`, use `colors.footer_bar` instead +- On macOS, Alacritty now reads `AppleFontSmoothing` from user defaults to control font smoothing ### Fixed -- Creating the IPC socket failing if WAYLAND_DISPLAY contains an absolute path +- Creating the IPC socket failing if `WAYLAND_DISPLAY` contains an absolute path - Crash when resetting the terminal while in vi mode - `font.glyph_offset` not live reloading - Failure when running on 10-bit color system @@ -50,6 +51,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Window flickering on resize on Wayland - Unnecessary config reload when using `/dev/null` as a config file - Windows `Open Alacritty Here` on root of drive displaying error +- On macOS, `font.use_thin_strokes` did not work since Big Sur +- On macOS, trying to load a disabled font would crash + +### Removed + +- `font.use_thin_strokes` config field; to use thin strokes on macOS, set + `AppleFontSmoothing` to 0 with `$ defaults write -g AppleFontSmoothing -int 0` ## 0.10.1 -- cgit v1.2.3