From 8da5584a5221d0876403f5c1f90259c87cd47d80 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 2 Nov 2019 16:42:03 -0700 Subject: [PATCH] add fallback font with replacement character on windows --- src/config.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/config.rs b/src/config.rs index 7265135d0..9c664d38f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -727,6 +727,14 @@ impl TextStyle { bold: None, italic: None, }); + + // Fallback font that has unicode replacement character + #[cfg(windows)] + font.push(FontAttributes { + family: "Segoe UI".into(), + bold: None, + italic: None, + }); #[cfg(windows)] font.push(FontAttributes { family: "Segoe UI Emoji".into(),