From ca5db296957d41aabefea0e246566dc30d23138c Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 3 Nov 2019 19:49:43 -0800 Subject: [PATCH] add a fallback font for chinese text on macos I'm no expert, but this at least allows me to mash the IME in pinyin mode and see chinese characters. --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config.rs b/src/config.rs index 9c664d38f..2ef07bd71 100644 --- a/src/config.rs +++ b/src/config.rs @@ -727,6 +727,12 @@ impl TextStyle { bold: None, italic: None, }); + #[cfg(target_os = "macos")] + font.push(FontAttributes { + family: "Apple LiGothic".into(), + bold: None, + italic: None, + }); // Fallback font that has unicode replacement character #[cfg(windows)]