diff --git a/LICENSE.md b/LICENSE.md index 72d0c0dc6..cf22ae0b4 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -23,3 +23,8 @@ SOFTWARE. WezTerm bundles `JetBrains Mono`, `Noto Color Emoji` and `Roboto` fonts. Those are distributed under the terms of the OFL 1.1, the text of which can be found in the assets/fonts directory. + +WezTerm bundles `Symbols Nerd Font Mono`, built from only those icon sets +available from https://github.com/ryanoasis/nerd-fonts which are clearly +distributed under the terms of the OFL 1.1. +Note that WezTerm excludes the Pomicons icon set from this collection. diff --git a/assets/fonts/PowerlineExtraSymbols.otf b/assets/fonts/PowerlineExtraSymbols.otf deleted file mode 100644 index 7310d8c7c..000000000 Binary files a/assets/fonts/PowerlineExtraSymbols.otf and /dev/null differ diff --git a/assets/fonts/Symbols-Nerd-Font-Mono.ttf b/assets/fonts/Symbols-Nerd-Font-Mono.ttf new file mode 100644 index 000000000..403e558ab Binary files /dev/null and b/assets/fonts/Symbols-Nerd-Font-Mono.ttf differ diff --git a/config/src/font.rs b/config/src/font.rs index f9391926f..ca8543905 100644 --- a/config/src/font.rs +++ b/config/src/font.rs @@ -560,6 +560,9 @@ impl TextStyle { // We bundle this emoji font as an in-memory fallback font.push(FontAttributes::new_fallback("Noto Color Emoji")); + // Add symbols that many people end up using via patched fonts + font.push(FontAttributes::new_fallback("Symbols Nerd Font Mono")); + // And finally, a last resort fallback font font.push(FontAttributes::new_fallback("Last Resort High-Efficiency")); diff --git a/docs/changelog.md b/docs/changelog.md index 6156c78b3..ab209eea6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,7 @@ As features stabilize some brief notes about them will accumulate here. * [ActivatePaneByIndex](config/lua/keyassignment/ActivatePaneByIndex.md) key assignment action. [#1517](https://github.com/wez/wezterm/issues/1517) * Windows: wezterm may now use [win32-input-mode](https://github.com/microsoft/terminal/blob/main/doc/specs/%234999%20-%20Improved%20keyboard%20handling%20in%20Conpty.md) to send high-fidelity keyboard input to ConPTY. This means that win32 console applications, such as [FAR Manager](https://github.com/FarGroup/FarManager) that use the low level `INPUT_RECORD` API will now receive key-up events as well as events for modifier-only key presses. Use `allow_win32_input_mode=true` to enable this. [#318](https://github.com/wez/wezterm/issues/318) [#1509](https://github.com/wez/wezterm/issues/1509) [#1510](https://github.com/wez/wezterm/issues/1510) * Windows: [default_domain](config/lua/config/default_domain.md), [wsl_domains](config/lua/config/wsl_domains.md) options and [wezterm.default_wsl_domains()](config/lua/wezterm/default_wsl_domains.md) provide more flexibility for WSL users. +* `Symbols Nerd Font Mono` is now bundled with WezTerm and is included as a default fallback font. This means that you may use any of the glyphs available in the [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts) collection with any font without patching fonts and without explicitly adding that font to your fallback list. Pomicons have an unclear license for distribution and are excluded from this bundled font, however, you may manually install the font with those icons from the Nerd Font site itself and it will take precedence over the bundled font. This font replaces the older `PowerlineExtraSymbols` font. [#1521](https://github.com/wez/wezterm/issues/1521). #### Changed diff --git a/wezterm-font/src/parser.rs b/wezterm-font/src/parser.rs index 4a501db33..cc11298d9 100644 --- a/wezterm-font/src/parser.rs +++ b/wezterm-font/src/parser.rs @@ -550,7 +550,7 @@ pub(crate) fn load_built_in_fonts(font_info: &mut Vec) -> anyhow::Re font!("../../assets/fonts/Roboto-Thin.ttf"), font!("../../assets/fonts/Roboto-ThinItalic.ttf"), font!("../../assets/fonts/NotoColorEmoji.ttf"), - font!("../../assets/fonts/PowerlineExtraSymbols.otf"), + font!("../../assets/fonts/Symbols-Nerd-Font-Mono.ttf"), font!("../../assets/fonts/LastResortHE-Regular.ttf"), ] { let locator = FontDataHandle {