1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00

wezterm-font: bundle a last resort font

Bundle the *Last Resort High-Efficiency* font from
https://github.com/unicode-org/last-resort-font/
version 13.001 (Oct 22 2020).

This provides a more useful fallback glyph than we'd otherwise
produce if there is no matching glyph in any of the fonts.

Its license is OFL-1.1 which is compatible with the other
bundled fonts.
This commit is contained in:
Wez Furlong 2020-11-22 16:10:54 -08:00
parent 4500510d5c
commit 3bd8d8c845
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -172,6 +172,9 @@ impl TextStyle {
// We bundle this emoji font as an in-memory fallback
font.push(FontAttributes::new_fallback("Noto Color Emoji"));
// And finally, a last resort fallback font
font.push(FontAttributes::new_fallback("Last Resort High-Efficiency"));
font
}
}

View File

@ -600,6 +600,7 @@ fn load_built_in_fonts(
font!("../../assets/fonts/JetBrainsMono-SemiLight-Italic.ttf"),
font!("../../assets/fonts/JetBrainsMono-SemiLight.ttf"),
font!("../../assets/fonts/NotoColorEmoji.ttf"),
font!("../../assets/fonts/LastResortHE-Regular.ttf"),
] {
let scope = allsorts::binary::read::ReadScope::new(&data);
let file = scope.read::<OpenTypeFile>()?;