From 04c083ee8a6d73277ab3fc44a927ae8d86a0c6b7 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 1 May 2021 19:36:57 -0700 Subject: [PATCH] docs: for use_cap_height_to_scale_fallback_fonts option --- docs/changelog.md | 2 +- .../config/use_cap_height_to_scale_fallback_fonts.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 docs/config/lua/config/use_cap_height_to_scale_fallback_fonts.md diff --git a/docs/changelog.md b/docs/changelog.md index 5962622f5..188b1a7ba 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -27,7 +27,7 @@ As features stabilize some brief notes about them will accumulate here. * Fixed: Window could vanish if a tab closed while the rightmost tab was active(!) [#690](https://github.com/wez/wezterm/issues/690) * Fixed: macOS: mouse cursor could get stuck in the hidden state. [#618](https://github.com/wez/wezterm/issues/618) * Improved: [font_rules](config/lua/config/font_rules.md) behavior to always append reasonable default `font_rules` to those that you may have specified in your config. `font_rules` now also include defaults for half-bright text styles. -* Improved: fallback fonts are scaled according to relative their *cap-height* metric to improve size consistency. This partially applies to some symbol/emoji fonts, but is dependent upon the font having reliable metrics. +* Improved: added [use_cap_height_to_scale_fallback_fonts](config/lua/config/use_cap_height_to_scale_fallback_fonts.md) option to scale secondary fonts according to relative their *cap-height* metric to improve size consistency. This partially applies to some symbol/emoji fonts, but is dependent upon the font having reliable metrics. * Improved: font-config queries now run much faster, resulting in snappier startup on unix systems * Fixed: [Hide](config/lua/keyassignment/Hide.md) had no effect on macOS when the titlebar was disabled [#679](https://github.com/wez/wezterm/issues/679) * Fixed: key and mouse assignments set via [window:set_config_overrides](config/lua/window/set_config_overrides.md) were not respected. [#656](https://github.com/wez/wezterm/issues/656) diff --git a/docs/config/lua/config/use_cap_height_to_scale_fallback_fonts.md b/docs/config/lua/config/use_cap_height_to_scale_fallback_fonts.md new file mode 100644 index 000000000..3210a7d88 --- /dev/null +++ b/docs/config/lua/config/use_cap_height_to_scale_fallback_fonts.md @@ -0,0 +1,10 @@ +# `use_cap_height_to_scale_fallback_fonts = false` + +*Since: nightly builds only* + +When set to true, use the *cap-height* font metrics of the base and the current +font to adjust the size of secondary fonts (such as bold or italic faces) to +visually match the size of the base font. + +The default is `false`. +