1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-25 02:13:09 +03:00

Bundle Symbols Nerd Font Mono

Built using:

```
./FontForge-2020-11-07-21ad4a1-x86_64.AppImage --script $PWD/font-patcher "$PWD/src/unpatched-fonts/NerdFontsSymbolsOnly/NerdFontsSymbolsOnly Template 1000 em.ttf" --powerline --use-single-width-glyphs -out /tmp/nerd-fonts-out --fontawesome --fontawesomeextension --fontlinux --octicons --codicons --powersymbols --powerline --powerlineextra --mdi --weathericons
```

which is everything *except* Pomicons at the time of writing, pending
clarifications of its distribution license
(https://github.com/ryanoasis/nerd-fonts/issues/266)

refs: https://github.com/wez/wezterm/issues/1521
This commit is contained in:
Wez Furlong 2022-01-16 16:01:46 -07:00
parent 3ee9270e3c
commit 070c4030c6
6 changed files with 10 additions and 1 deletions

View File

@ -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.

Binary file not shown.

View File

@ -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"));

View File

@ -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

View File

@ -550,7 +550,7 @@ pub(crate) fn load_built_in_fonts(font_info: &mut Vec<ParsedFont>) -> 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 {