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:
parent
4500510d5c
commit
3bd8d8c845
BIN
assets/fonts/LastResortHE-Regular.ttf
Normal file
BIN
assets/fonts/LastResortHE-Regular.ttf
Normal file
Binary file not shown.
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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>()?;
|
||||
|
Loading…
Reference in New Issue
Block a user